示例#1
0
 private void DeInitXRSDK()
 {
     if (m_XRManager != null && m_XRManager.activeLoader != null)
     {
         m_XRManager.DeinitializeLoader();
         m_XRManager = null;
     }
 }
示例#2
0
 private void DeInitXRSDK()
 {
     if (m_XRManager != null && m_XRManager.activeLoader != null)
     {
         m_XRManager.DeinitializeLoader();
         m_XRManager          = null;
         m_ProviderIntialized = false;
     }
 }
示例#3
0
        private void InitXRSDK()
        {
            if (XRGeneralSettings.Instance == null || XRGeneralSettings.Instance.m_LoaderManagerInstance == null || XRGeneralSettings.Instance.m_InitManagerOnStart == false)
            {
                return;
            }

            m_XRManager = XRGeneralSettings.Instance.m_LoaderManagerInstance;
            if (m_XRManager == null)
            {
                Debug.LogError("Assigned GameObject for XR Management loading is invalid. XR SDK will not be automatically loaded.");
                return;
            }

            m_XRManager.automaticLoading = false;
            m_XRManager.automaticRunning = false;
            m_XRManager.InitializeLoaderSync();
        }