UI over a game object

Hello! I want to display a number over my 3d Unity object. Could you help me? I already tried this :

void Update () {

      text.transform.position = Camera.main.WorldtoScreenPoint(this.transform.position)

}

But it looked weird. It didn’t follow the after it got close to the side of the screen.

In the method in which the canvas is attached to the game object as a child, I couldn’t resize the text to be enough small but also be readable.

I would be grateful for any help. :slight_smile:

Not too much into heavy coding, but maybe some kind of "look at camera " option is needed? Also I know a lot of issues with blurriness have to do with import settings, for example my gui images were blurry until I turned off compression in the asset inspector settings. Hope my input helps.