Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: kofight on November 29, 2013, 03:52:23 AM

Title: UITexture's depth does not work, 3.06 f6
Post by: kofight on November 29, 2013, 03:52:23 AM
Easy to reproduce, I overlap two UISprite, tweak the depth to change the sort, it works.
If I change one sprite to UITexure, the tweak the depth doesn't make any change.
Title: Re: UITexture's depth does not work, 3.06 f6
Post by: kofight on November 29, 2013, 04:10:42 AM
I am wrong, it's not about UITexure, all depth works in a unexpect way...
Title: Re: UITexture's depth does not work, 3.06 f6
Post by: ArenMook on November 29, 2013, 08:58:45 AM
All seems to work fine here. How do you change the depth?
Title: Re: UITexture's depth does not work, 3.06 f6
Post by: kofight on November 30, 2013, 01:25:47 AM
I can reproduce the bug,
The depth of UITexture don't work, but I found that I can tweak UITexture's Z value to tweak the sort.

I think it's still a small bug, if you need a scene to reproduce it, I can send it to you.

About the UISprite's depth, it works now, the UITexture thing make me confused about that, sorry.
Title: Re: UITexture's depth does not work, 3.06 f6
Post by: Nicki on November 30, 2013, 12:45:38 PM
Give us the steps to reproduce.

How are you changing depth? Through the inspector, through code?

Are you changing a gameobject to have a new UITexture Component and remove the old UISprite component at run time? Do you put a new prefab there?

The devil's in the details.