MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

How do you exclude objects from gaze input?

Open StarWardo opened this issue 9 years ago • 3 comments

I am looking for a way to let the Hololens ignore certain objects that would not be affected by gaze input. When a gameobject is inside another gameobject (for example a glass orb) they cannot be tapped.

StarWardo avatar Feb 09 '17 22:02 StarWardo

I actually just merged a PR that addresses this exact issue. https://github.com/Microsoft/HoloToolkit-Unity/pull/510

You'd want to assign an overridden focused object.

Also, you can assign objects to specific layers and on the InputManager's Gaze Manager remove the layer you'd like to ignore. capture

Or if you do not require physics calculations, simply remove the collider from the object.

StephenHodgson avatar Feb 09 '17 22:02 StephenHodgson

Sorry that I missed that, thanks a lot!

StarWardo avatar Feb 09 '17 23:02 StarWardo

No worries, glad I could help.

S-Hodgson-MMOARgames avatar Feb 10 '17 01:02 S-Hodgson-MMOARgames