// Use this for initialization void Start() { instance = this; //Set the initial rotation to align the virtual world with the real world on start initialRotation = Quaternion.Euler (new Vector3 (-90, 0, 0)); #if UNITY_IPHONE HeadTrackingIOS.StartCameraUpdates(); #endif #if UNITY_ANDROID HeadTrackingAndroid.Initialize(); #endif }
// Use this for initialization void Start() { instance = this; //Set the initial rotation to align the virtual world with the real world on start initialRotation = Quaternion.Euler(new Vector3(-90, 0, 0)); #if UNITY_IPHONE HeadTrackingIOS.StartCameraUpdates(); #endif #if UNITY_ANDROID HeadTrackingAndroid.Initialize(); #endif }