Author Topic: UITexture's depth does not work, 3.06 f6  (Read 2389 times)

kofight

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
UITexture's depth does not work, 3.06 f6
« 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.

kofight

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
Re: UITexture's depth does not work, 3.06 f6
« Reply #1 on: November 29, 2013, 04:10:42 AM »
I am wrong, it's not about UITexure, all depth works in a unexpect way...

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UITexture's depth does not work, 3.06 f6
« Reply #2 on: November 29, 2013, 08:58:45 AM »
All seems to work fine here. How do you change the depth?

kofight

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
Re: UITexture's depth does not work, 3.06 f6
« Reply #3 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.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: UITexture's depth does not work, 3.06 f6
« Reply #4 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.