x


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?

more ▼

asked Nov 16 '09 at 10:43 PM

Dan gravatar image

Dan
100 3 4 8

D'oh! I was trying to use the Y position since that was the depth axis for the camera I'm using. Thank you!

Nov 16 '09 at 10:51 PM Dan
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

Simply set the Z position on the Transform component (negative moves forward, positive moves backwards).

more ▼

answered Nov 16 '09 at 10:46 PM

Matthew gravatar image

Matthew ♦♦
116 3

(comments are locked)
10|3000 characters needed characters left

Adjust the Z position value of their game object.

more ▼

answered Nov 16 '09 at 10:47 PM

duck gravatar image

duck ♦♦
41k 92 148 415

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5087
x3693

asked: Nov 16 '09 at 10:43 PM

Seen: 6876 times

Last Updated: Nov 16 '09 at 10:43 PM