Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
ameant.ai's avatar
ameant.ai
Honored Guest
10 months ago
Solved

Disable Controller Cursor for Mesh/Material

How do I turn off the default controller cursor (the annular shade marked off on surfaces by the incident beam of one of the controllers) for a given mesh or material?

  •  

    Thank you, NotBadB. However, I still want HitInfo events to be emitted, as I use them to draw my own cursor in the fragment shader.

    That said, the issue can be easily resolved—or rather, worked around—using the new interaction toolkit (SDK v0.6.0). For example, one can control the value of:

    systemManager.findSystem<IsdkDefaultCursorSystem>().cursorScaleMultiplier

     

2 Replies

Replies have been turned off for this discussion
  • You can do this via the hittable attribute on the Mesh Component:

    entity.setComponent(Mesh(Uri.parse("duck.glb"), hittable = MeshCollision.NoCollision))
    

     

    • ameant.ai's avatar
      ameant.ai
      Honored Guest

       

      Thank you, NotBadB. However, I still want HitInfo events to be emitted, as I use them to draw my own cursor in the fragment shader.

      That said, the issue can be easily resolved—or rather, worked around—using the new interaction toolkit (SDK v0.6.0). For example, one can control the value of:

      systemManager.findSystem<IsdkDefaultCursorSystem>().cursorScaleMultiplier