Nametag above an object

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)

Is there any solution for this?

A world space canvas as a child object with a script on it to keep it rotation the same as the camera always works for me.

What camera angle are you using? I’m using a top-down view

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.

I’ll provide some screenshots of the results that I’m getting with the world space canvas