- Home /
How do I set layer depth for GUI Texture GameObjects?
How do I set layer depth for GUI Texture GameObjects? I have two overlapping GameObjects - one is a HUD "container" for a health bar that changes value, but the health bar is always hidden behind the container that shows the max health. Ideas?
Comment
D'oh! I was trying to use the Y position since that was the depth axis for the camera I'm using. Thank you!
Best Answer
Answer by Matthew.du · Nov 16, 2009 at 10:46 PM
Simply set the Z position on the Transform component (negative moves forward, positive moves backwards).