I’m making a HoloLens 2 app using Unity and MRTK, I need to instantiate a gameObject in the coordinates of the user hand when the user performs an Air-tap gesture, I was trying to achieve this using IMixedRealityInputHandler
, but the problem is that in order to detect the air-tap gesture, the user need to be pointing towards the gameObject that has the script to implements that interface attached,
Any idea about how can I detect the air-tap mid-air without the need of pointing something directly?
To listens for input events and disregarding what GameObject in focus, you can create a component registered global input handlers, more information please see:Register for global input events