Пример #1
0
        /// <summary> Stop the camera. </summary>
        public virtual void Stop()
        {
            if (!m_IsPlaying)
            {
                return;
            }
            NRDebugger.Info("[CameraController] Start to Stop");

            // If there is no a active texture, pause and release camera resource.
            if (m_ActiveTextures.Count == 0)
            {
                m_IsPlaying = false;
#if !UNITY_EDITOR
                CameraDataProvider.StopCapture();
#endif
                Release();
            }
        }