I’ve been having difficulty in getting a nametag to float above an object. I’ve tried multiple solutions including:
1. A world space canvas attached to the object, with a billboard effect
(Causes strange rotations, and the text begins to move away from the object as the camera moves away)
2. A screen space camera using a script to convert the world position of the object into screen space.
(The nametag begins to move away from the object as the camera moves away)
It’s independent of camera angle, you can rotate the camera however you like. The UI element simply keeps it’s rotation the same as the camera, and you are always looking at it head on.