Author Topic: why my atlas can't display  (Read 2190 times)

heartrude

  • Guest
why my atlas can't display
« on: September 24, 2012, 11:16:04 PM »
i create a default 2d UI。
then create a UIFilledSprite with Fantasy Atlas as background and set the depth 0。
and i create a sprite with my Atlas and set the depth 1. but the sprite alway can't display. only if i disable the backgroud, i can see the sprite.

could anybody help me ?

heartrude

  • Guest
Re: why my atlas can't display
« Reply #1 on: September 25, 2012, 12:49:00 AM »
i got the answer in the Q&A section.

"Depth" property is used to determine the drawing order of the widgets within the same panel that use the same atlas. If you are using different atlases, bring the widgets forward on the transform's Z, moving them closer to the camera (-Z). If you are using different panels, adjust the transform of the panel you want to bring in front to a lower negative Z value (-Z). I highly recommend sticking to one atlas if you can manage it, it will make your life significantly easier.