Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Wisteso on October 21, 2014, 06:20:44 PM

Title: (Suggestion) NGUI defaults to ARGB, but iOS does not like this format
Post by: Wisteso on October 21, 2014, 06:20:44 PM
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
Title: Re: (Suggestion) NGUI defaults to ARGB, but iOS does not like this format
Post by: ArenMook 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.
Title: Re: (Suggestion) NGUI defaults to ARGB, but iOS does not like this format
Post by: dilshod 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.
Title: Re: (Suggestion) NGUI defaults to ARGB, but iOS does not like this format
Post by: ArenMook 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.