Beispiel #1
0
        /// <summary>
        /// Stops the tracking.
        /// </summary>
        public void StopTracking()
        {
            if (_trackerPlugin != null)
            {
                _trackerPlugin.StopTracking();
            }

            // Restore projection matrix
            Camera camera = _renderingCamera;

            if (camera == null)
            {
                camera = Camera.main;
            }
            if (camera != null)
            {
                camera.ResetProjectionMatrix();
            }
        }