Hiding hover cursor

Hi Everyone-

How can I hide the hover cursor?

The playground below hides the arrow cursor when you press the h key. But it does not hide the hover cursor (pointer). I can change the scene.hoverCursor but this does not takes effect until I move the pointer.

The sphere has the hover cursor. The plane does not.

Alternately, is there a way to prevent bjs from doing a hover action on meshes that have ActionManager.OnPickTrigger?

Any ideas?

Thanks!

Flex

The scene’s doNotHandleCursors is what you are looking for.

You could also use the scene’s hoverCursor like this:

hover test | Babylon.js Playground (babylonjs.com)

1 Like

You can also customize the onHover cursor, on the actionManager :

sphere.actionManager.hoverCursor = ""; // (default behavior)
sphere.actionManager.hoverCursor = "none"; // no cursor
sphere.actionManager.hoverCursor = "default"; // normal mouse cursor (no pointer)
1 Like

Thanks, Raanan.

doNotHandleCursors = true fixes the problem. Changing scene.hoverCursor does not, as it does not hide the cursor until the pointer moves.

I appreciate all the help!

-Flex

1 Like

you can decide when to change it, but yeah - I thought the global flag would make more sense in your use case.