Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: tgraupmann on November 12, 2012, 03:50:34 PM
-
Okay I'm using a couple components. I have some UISprites and some UILabels.
So I have 4 layers.
Layer 1: UISprite for an overall background
Layer 2: UILabel for some various text
Layer 3: UISprite for a sprite layer over some of the text, not all
Layer 4: More text that always needs to be on top.
My problem is that all the text either wants to be on top of everything. Or the text wants to be behind the background layer.
I've tried messing with the back and front ordering. And I've played with the z-order, z-depth.
Is there some workaround where I can draw some text, independent from the other text to put it onto its own z-depth?
Thanks,
~Tim
-
Did you read this sticky topic?
http://www.tasharen.com/forum/index.php?topic=1858.0
This may also help you understand:
http://www.tasharen.com/forum/index.php?topic=2221
-
Let me expand on my first post to add that all the layers are using the same atlas.
Re-Reading the sticky and posts.
-
I think I understand now Yoda.
If I want to sandwich text, the individual layers need to be on individual UIPanels and controlled via their transform z-depths.
-
Yup.