Cursor hover with ActionManager

Hi, how to prevent the change of the cursor when hovering?
I want the mesh to be clickable but without a hint from the cursor “hand”. (for a game)

What I’ve tried:
shapeL.actionManager.hoverCursor = null
But the cursor is still changing

  shapeL= CreateSphere("shapeMInit", { segments: 16, updatable: true }, scene);

  shapeL.actionManager = new ActionManager(scene);
  shapeL.actionManager.hoverCursor = null

  shapeL.actionManager.registerAction(
    new InterpolateValueAction(
        ActionManager.OnPickTrigger,
        myMaterial,
        'diffuseColor',
        Color3.Red(),
        1000
    )
);

According to API hoverCursor should be a string.
This string actually should be a cursor CSS property (see list here, for example).

So in order to prevent the change you need to use 'default', not null.

Example - Babylon.js Playground (click the sphere).

2 Likes

Thank you very much for your answer labris. :white_check_mark:

1 Like

If you want all meshes to be hidden in the scene
https://playground.babylonjs.com/#LQFIVG#1
this way is also good