Author Topic: (Suggestion) NGUI defaults to ARGB, but iOS does not like this format  (Read 2846 times)

Wisteso

  • Full Member
  • ***
  • Thank You
  • -Given: 21
  • -Receive: 3
  • Posts: 103
    • View Profile
Changing the atlas to RGBA is easy enough, but I thought NGUI may want to be a little smarter about this. Perhaps just setting the format to Automatic Truecolor.

See here for more details on the issues iOS has with ARGB...  http://answers.unity3d.com/questions/771961/unity-ios-texture-format.html

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: (Suggestion) NGUI defaults to ARGB, but iOS does not like this format
« Reply #1 on: October 22, 2014, 05:33:10 AM »
There is no such setting via code. Have a look at Unity's TextureFormat enum. You need to specify the exact format. There is no "Automatic Truecolor". That's only in inspector.

dilshod

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 7
  • Posts: 14
    • View Profile
Re: (Suggestion) NGUI defaults to ARGB, but iOS does not like this format
« Reply #2 on: October 23, 2014, 12:24:30 AM »
There is no such setting via code. Have a look at Unity's TextureFormat enum. You need to specify the exact format. There is no "Automatic Truecolor". That's only in inspector.

NGUIEditorTools.cs
lines 447 and line 482:
settings.textureFormat = TextureImporterFormat.ARGB32;
can be changed to:
settings.textureFormat = TextureImporterFormat.AutomaticTruecolor;

i agree with Wisteso, it's better if format is automatic truecolor.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: (Suggestion) NGUI defaults to ARGB, but iOS does not like this format
« Reply #3 on: October 23, 2014, 03:16:10 PM »
Hmm... either I was blind or I was looking at something else. I'll change it to AutomaticTruecolor, thanks.