Author Topic: Sprites, Labels dissapear(are not rendered) at runtime  (Read 1657 times)

moghes

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 17
    • View Profile
Sprites, Labels dissapear(are not rendered) at runtime
« on: October 14, 2013, 03:27:43 PM »
Hello everyone,

I've been working with NGUI for the first time and things were going much fine till now.

I don't know what happened when Items/sprites/labels started dissapearing without any reasonable reason.

For example I have my items listed in a scroll view, and when I hit the play button, some item do not show where they used to appear in the editor.
As I pause the game, I see the item (the outline) but not being rendered.
I check the depth (for example 9), as the other items also having a depth of 9, but being rendered normally.
I hit forward while game is still running, and the item appears (now with a depth of 10).

As I stop the game (new depth not being applied since changes were at runtime), and all items appear again, all with depth 9.
I am sure no code is accessing the depths.

Another problem occurs, when I hit forward to make an item show, suddenly other items are gone.
There are times that children labels don't appear, other times appear..
What a mess, I can't know where to start, what to fix or how to fix..
Can anyone tell what might have happened?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Sprites, Labels dissapear(are not rendered) at runtime
« Reply #1 on: October 16, 2013, 02:40:16 AM »
Which version of NGUI? Conflicting depth means the draw order is undefined.