Exemplo n.º 1
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.º 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.lightEstimationRequested = lightEstimation;
            ARSubsystemManager.StartSubsystems();
        }
Exemplo n.º 3
0
 void OnDestroy()
 {
     ARSubsystemManager.DestroySubsystems();
 }