Can gui text be behind game objects? (Solved with label component

Im trying to make it so the gui looks like its written on the floor and the character can walk over it

The GUI is by default rendered in a separate pass to screen space coordinates by the render script. You can use the Label component to render text in the game world together with your sprites, tilemaps etc.

2 Likes

Probably the best solution would be to add a game object as a child of the hero object. This GO would have a label or any elements you would like to add, a script to update informations and it would have Z position lower than hero’s :wink:

Or if you planned to have it in a fixed position attach it to the floor instead of the hero

1 Like

Its not working its still just sitting there covering the screen

I figured out ur suppose to use the label component according to upper guy the gui is suppose to be a thing in another dimension that sticks to the screen

Could you provide some example of what you are looking for? I though you might something like in Dead Space was - a path on the ground, not fixed to the screen but to the world. Then a label with a Z position lower than a sprite’s position would work.

1 Like


I was trying to make the timer to be in the background because i like how it looks
See how the red cube(player) is in front