IEnumerator Start() { yield return(new WaitForEndOfFrame());//execution after ARCamera.Start() and TagTracker.Start() arCamera = ARCamera.Singleton; tagTracker = TagTracker.Singleton; ApplyOverrideSetting(); }
void Awake() { singleton = this; Application.targetFrameRate = 60; InitializeHeadTracking(); InitializeCameraInstances(); isInitialized = true; }
static void CreateARCameraInScene() { GameObject ARCameraObject = new GameObject("AR Camera", new System.Type[] { typeof(Camera), typeof(ARCamera), typeof(TagTracker), typeof(AudioListener), }); ARCamera arCamera = ARCameraObject.GetComponent <ARCamera>(); Selection.activeTransform = ARCameraObject.transform; EditorGUIUtility.PingObject(ARCameraObject); }