Skip to main content
ameantai
New Participant
Apr 19, 2025 9:26 AM UTC
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?

    This topic has been closed for replies.
    ameantai
    ameantaiAnswer
    New Participant
    Apr 25, 2025 2:32 PM UTC

     

    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

    Meta Employee
    Apr 24, 2025 5:41 PM UTC

    You can do this via the hittable attribute on the Mesh Component:

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

     

    ameantai
    ameantaiAuthorAnswer
    New Participant
    Apr 25, 2025 2:32 PM UTC

     

    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