Hello
I’m using Unity 5.5.0 and GVR SDK 1.0.3 and I wonder if it is possible
there to print the Gaze property as it is done on this video.
In the new GVR we no longer have Head as a component so it is
a bit mysterious to me how to get hold of Head,etc…
EDIT
Ok I actually read what’s inside GVRViewer script and it seems
that I can get similar results with this script
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GazeTest : MonoBehaviour {
private GvrViewer gvrViewer;
// Use this for initialization
void Start () {
gvrViewer = FindObjectOfType<GvrViewer> ();
}
// Update is called once per frame
void Update () {
print ("Position " + gvrViewer.HeadPose.Position + " Orientation " + gvrViewer.HeadPose.Orientation);
}
}