#Confused about how node placement works

5 messages · Page 1 of 1 (latest)

wind cloud
#

You're mixing UI and non-UI components. Node is purely for UI and Mesh2d is purely in the game world. You can only lay out other UI components using Node

iron rapids
#

Is there a way to get text to display above a person in the game.
For me, I'm trying to get stats of the soldier to show up above him but Text keeps messing up transforms of the soldiers.

#

Eventually, I'll develop a UI panel to display the info but I just want the text to show up for now so I can stop looking in the console 😅

wind cloud
# iron rapids Is there a way to get text to display above a person in the game. For me, I'm tr...

the non-UI text component Text2d, it'll basically render text like a sprite in the game world. at least that works when your main camera is 2d.

alternatively, you should be able to render anything to a texture (UI or Text2d) and use that texture for a mesh in 3d. might be a bit of a hassle though, and a bunch of overhead if you need more than 1. alternatively, another option, if you need 3d, would be bevy_sprite3d but that's still gonna require somehow creating a texture. bevy_lunex can apparently also do world-space UI

wind cloud