Scale text linked with mesh (Name over Character/GUI/Mesh)

Hello!

In this example, when the camera zooms in/out, the sizes of the GUI elements are always the same. I would like the GUI elements to become smaller as the camera moves away from the mesh.

Is there a simple (built into babylon) way to do this?

This is necessary in order to simply write names over meshes, as, for example, in WoW.
Or maybe there is some other way to make a name over a character?

name_over_char

What do you mean by this?

3 Likes

Delete line 39 if you don’t want the billboard.

1 Like

I think you want to create the gui for a mesh: The Babylon GUI | Babylon.js Documentation

2 Likes

Yes, this is 100% what I need. Thank you. billboardMode is a nice discovery for me!

3 Likes