Okay, so, I got the challenge to create a program, in Unity for GearVR. I have to make a program which makes use of gaze input, so if you stare at an object for several seconds it'll display you a 360* video.
I barely can't find any GearVR Gaze Input tutorials around on the web so I wanted to give it a shot on Stackoverflow, and hopefully someone could help me out! :)
You have to use Physics.Raycast. This method emits a ray from the camera point to the camera orientation. You can use something like that:
Simply put this script on your camera in the
FixedUpdate
method and another script namedMyObjectScript
in the object you want to detect.