Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Tester1234 on January 25, 2017, 10:41:23 AM

Title: New child and depth problem ?
Post by: Tester1234 on January 25, 2017, 10:41:23 AM
Ok, I do experince a depth problem, I will explain the problem;

I have panel and grid, and I have 15 items created from a ui prefab and added to grid ( each item has main gameobject with UIWidget and UI sprite as child ), this ui prefab has depth of 1000. I have also little win animation a UISprite just come over this grid of items, this UISprite has depth of 2000, however because grid items created in game play, my animation sprite with depth of 2000 still shows under this grid items with depth of 1000.

How can resolve this problem ? If I create child widgets and add to grid in game play, depth has no meaning any more ?

Regards
Title: Re: New child and depth problem ?
Post by: Holy Manfred on January 25, 2017, 12:38:36 PM
Are you sure you the animated sprite you add is added to the correct panel?
Title: Re: New child and depth problem ?
Post by: ArenMook on January 25, 2017, 02:36:38 PM
As Holy Manfred said, check what panel they are being drawn by.

Camera depth > Panel depth > Widget depth.
Title: Re: New child and depth problem ?
Post by: Tester1234 on January 26, 2017, 03:32:30 AM
Thank you people. Yes, my animation was in a different panel, I solved the problem.