# Cursor hover with ActionManager

**URL:** <https://forum.babylonjs.com/t/cursor-hover-with-actionmanager/35957>\
**Category:** Questions\
**Created:** [November 23, 2022, 2:46pm UTC](https://forum.babylonjs.com/t/cursor-hover-with-actionmanager/35957 "2022-11-23T14:46:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hiwoyn](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/hiwoyn/32/27888_2.png) [@Hiwoyn](https://forum.babylonjs.com/u/Hiwoyn)\
**Post date:** [November 23, 2022, 2:46pm UTC](https://forum.babylonjs.com/t/cursor-hover-with-actionmanager/35957/1 "2022-11-23T14:46:33Z")

</div>

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

```auto
  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
    )
);

```

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [November 23, 2022, 4:44pm UTC](https://forum.babylonjs.com/t/cursor-hover-with-actionmanager/35957/2 "2022-11-23T16:44:38Z")

</div>

According to [API](https://doc.babylonjs.com/typedoc/classes/BABYLON.ActionManager#hoverCursor) `hoverCursor` should be a string.  
This string actually should be a cursor CSS property (see list [here](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor), for example).

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

Example - [Babylon.js Playground](https://playground.babylonjs.com/#LQFIVG) (click the sphere).

---

<div class="post-metadata">

**Author:** ![Hiwoyn](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/hiwoyn/32/27888_2.png) [@Hiwoyn](https://forum.babylonjs.com/u/Hiwoyn)\
**Post date:** [November 24, 2022, 5:31am UTC](https://forum.babylonjs.com/t/cursor-hover-with-actionmanager/35957/3 "2022-11-24T05:31:51Z")

</div>

Thank you very much for your answer labris. ✅

---

<div class="post-metadata">

**Author:** ![11128](https://avatars.discourse-cdn.com/v4/letter/1/d07c76/32.png) [@11128](https://forum.babylonjs.com/u/11128)\
**Post date:** [November 29, 2022, 2:12am UTC](https://forum.babylonjs.com/t/cursor-hover-with-actionmanager/35957/4 "2022-11-29T02:12:18Z")

</div>

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