cancel
Showing results for 
Search instead for 
Did you mean: 

Disable Controller Cursor for Mesh/Material

ameant.ai
Honored Guest

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?

1 ACCEPTED SOLUTION

Accepted Solutions

 

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

 

View solution in original post

2 REPLIES 2

NotBadB
Meta Employee

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

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

 

 

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