IEnumerator Start()
        {
            yield return(new WaitForEndOfFrame());//execution after ARCamera.Start() and TagTracker.Start()

            arCamera   = ARCamera.Singleton;
            tagTracker = TagTracker.Singleton;
            ApplyOverrideSetting();
        }
예제 #2
0
 void Awake()
 {
     singleton = this;
     Application.targetFrameRate = 60;
     InitializeHeadTracking();
     InitializeCameraInstances();
     isInitialized = true;
 }
예제 #3
0
        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);
        }