Author Topic: Depth (Back, Forward) is not working  (Read 2309 times)

kodagames

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Depth (Back, Forward) is not working
« on: April 19, 2012, 08:00:39 PM »

Im noticing that when I create sliced sprites, buttons etc.. When I use the Depth buttons (Back, Forward) the objects don't move forward or backward?

For example:
I
f I create a UIImageButton with a graphic then create a sliced Sprite the sliced sprite will be drawn on top of the button (can no longer see the button image).

If I then change the Depth(Back, Forward) on the background of the image (where the buttons image is) there is no change it just wont bring the image of the button forward on top of the sliced sprite?

I was under the impression this is how it should work but it's not and just want to make sure this is how its supposed to work and ask why its not working?

It seems pretty straight forward but Im missing something...

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Depth (Back, Forward) is not working
« Reply #1 on: April 20, 2012, 06:51:32 AM »
It only works for sprites within the same atlas. Different atlases still cause you to adjust transform's Z.