#Confused about how node placement works
5 messages · Page 1 of 1 (latest)
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 😅
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
honestly, if its for debugging, i'd just add bevy inspector egui, derive reflect on the relevant components, and be done with it