Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Derell Nar on December 04, 2012, 03:54:20 AM

Title: Disapearing textures in UI
Post by: Derell Nar on December 04, 2012, 03:54:20 AM
I have a weird issue that I cannot find an answer to, I'm hoping someone could help.

I created some UI (2D UI) with NGUI 2.0 and recently I updated to the latest version of NGUI (2.2.6c).
My project is done in Unity and is deployed to an iOS Device (iPad or other).
At launch, one of my UI elements only shows Labels (Text) all other sprites and images are not shown. As soon as I interact with a UI Widget, everything reappears.
This only occurs on the iOS Device, not on the Computer.

This is what I've tried so far:
At first the UI in question was using 3 Atlases plus a Font Atlas.

I'm running out of ideas...

Does anyone have any suggestions on how to fix this issue?

Thank you
Title: Re: Disapearing textures in UI
Post by: Derell Nar on December 04, 2012, 07:19:25 AM
Ok..looks like I found the solution...

It turns out my UI element had the following Hierarchy:
UIRoot
-->Camera
---->Anchor
------>Panel

Once I switched the Anchor an the Panel:
UIRoot
-->Camera
---->Panel
------>Anchor

Everything worked...

This is still a bit speculation on my part, so if anyone can confirm or deny that the Panel/Anchor Hierarchy is that important that Widgets will not be drawn correctly it would be much appreciated.

Thank you
Title: Re: Disapearing textures in UI
Post by: ArenMook on December 04, 2012, 10:01:38 AM
Are you scaling something from 0? Scale of 0 is invalid and should never be used. It causes a division by zero.