Exemplo n.º 1
0
        void OnEnable()
        {
#if DEBUG
            WarnIfMultipleARSessions();
#endif
            ARSubsystemManager.CreateSubsystems();
            StartCoroutine(Initialize());
        }
Exemplo n.º 2
0
        /// <summary>
        /// Resets the AR Session. This destroys the current session, including all trackables, and
        /// then establishes a new session.
        /// </summary>
        public void Reset()
        {
            if (ARSubsystemManager.systemState < ARSystemState.Ready)
            {
                return;
            }

            ARSubsystemManager.StopSubsystems();
            ARSubsystemManager.DestroySubsystems();
            ARSubsystemManager.CreateSubsystems();
            ARSubsystemManager.StartSubsystems();
        }
Exemplo n.º 3
0
        /// <summary>
        /// Resets the AR Session. This destroys the current session, including all trackables, and
        /// then establishes a new session.
        /// </summary>
        public void Reset()
        {
            if (ARSubsystemManager.systemState < ARSystemState.Ready)
            {
                return;
            }

            ARSubsystemManager.StopSubsystems();
            ARSubsystemManager.DestroySubsystems();
            ARSubsystemManager.CreateSubsystems();
            ARSubsystemManager.lightEstimationRequested = lightEstimation;
            ARSubsystemManager.StartSubsystems();
        }