Add hover above the mesh

hello ,

i’m trying to add a hover on the mesh (always above the mesh)
i tried like this : Babylon.js Playground :confused:

thanks for help :slight_smile:

Hi

does something like this work for you?

https://www.babylonjs-playground.com/#XCPP9Y#1560

1 Like

thanks for ur reply but i want something like this :
object-forum
simple hover and always above my object.

https://www.babylonjs-playground.com/#XCPP9Y#1561

You can control everything in rect1 and text1 objects. Size, position, colors, borders, text.

9 Likes

thanks @nogalo :smiley:

This is actually Cool. But If I have several sphere like this. How can I know, which sphere is under mouse cursor now?

You can get the object the pointer is over, eg https://www.babylonjs-playground.com/#XCPP9Y#8180

You can re-position your label to a particular mesh using The Babylon GUI | Babylon.js Documentation

2 Likes