Log in or register to post comments

Black textures - Using NGUI with iOS version

May 9, 2012 - 1:27am #1

Hi,

Im using NGUI for my 2D interface (http://www.tasharen.com/?page_id=32), a popular tool for Unity. When I run one of the sample applications (like image-targets) and add a button/label, it displays perfectly fine on the Android build (on top of the camera view). However, on iOS all of my button/label textures come up black. This is not the case in either version for GUIText/GUITexture objects (built into Unity)

Could it be with how the ViewController is setup? Anyone have any ideas on what may be wrong? Thanks.

Black textures - Using NGUI with iOS version

July 23, 2014 - 2:11pm #7

For anyone else that comes across this issue, a fix that worked much better for me was simply forcing Unity to include the shaders provided by NGUI.

Go to: Edit > Project Settings > Graphics

Drag in any of the shaders you're using with NGUI and it should all work fine..

Black textures - Using NGUI with iOS version

June 18, 2013 - 4:40am #6

We're having the same problem with Android now!

 

Which shader did you choose then? All the differents ones seem to really change the look of the UI

 

Thanks!

Re: Black textures - Using NGUI with iOS version

May 9, 2012 - 6:58pm #5

Problem solved, not sure why it worked on the Android okay. The issue was not using "Unlit" shaders. I swear I never had this problem with the default atlases that come with NGUI in other projects. Anyhow, this is the fix if anyone encounters it. Click the material, and select a shader in the Unlit dropdown.

Thanks for the help and quick replies!

Re: Black textures - Using NGUI with iOS version

May 9, 2012 - 6:46pm #4

I wonder if the textures are colliding. Do you know what the button texture's name is?

Also did you try reimporting NGUI? Sometimes Unity will strip asset references.

Re: Black textures - Using NGUI with iOS version

May 9, 2012 - 5:33pm #3

Yeah, I actually use NGUI for my other iPhone applications. This is the first time I have encountered this problem.

Re: Black textures - Using NGUI with iOS version

May 9, 2012 - 2:41pm #2

Have you tried NGUI on iOS for apps that don't use Vuforia? - do the buttons render properly?

Log in or register to post comments