Gui Text - Always on top?

Hiya,

I’m trying to create a GUI that uses a GUI Texture with GUI Text on top that displays and updates with a variable of an object. It this possible as I can’t get the Text to be “on top” of the texture.

Use the Z position to layer GUIText and GUITexture objects as desired.

–Eric

I’m afraid it doesn’t appear to work, in the transform of the texture it’s 0,0,0 and for the text it’s 0,0,1 but isn’t showing? :frowning: Sorry if I’m doing something stupid.

Also, another question, how would I go about making the health GUI text update the player’s health?

Works fine here.

–Eric

Yea it was me being stupid, I hadn’t positioned it in a place it’d be visible even if the z positioning was changed, so thank you, it’s working. :slight_smile:

Any ideas about getting text to display and update a variable?

I posted something that does this on Unity Answers, Google Ahey?
http://answers.unity3d.com/questions/31635/how-do-you-get-a-gui-text-to-display-a-var-like-health/31677#31677

Peace,