Hi, I’ve tried following the tutorial “Gaze Control for VR in Unity” on YouTube and managed to get the UI buttons to interact correctly. However, I can’t seem to trigger any non-UI objects. My assumption for the VRTargetItem.cs script provided with that tutorial is that it triggers a “click” if no other methods are invoked on GazeComplete. Can anyone advise?
Link to the Video below:
I finally figured it out! All I needed was to add a Event Trigger ->Submit(BaseEventData) to the object and reference the activation script to make it work. That’s because the VRTriggerItem script uses the “ISubmitHandler” which only invokes the “m_submit.OnSubmit(pointer)” method.
I’ve also had to modify my activation script to operate as a public method instead of remaining in the Update container and only triggered via Input.GetKeyDown/GetButtonDown.