void Awake() { Debug.Log("XRGeneral Settings awakening..."); s_RuntimeSettingsInstance = this; Application.quitting += Quit; DontDestroyOnLoad(s_RuntimeSettingsInstance); }
internal static void AttemptStartXRSDKOnBeforeSplashScreen() { XRGeneralSettings instance = XRGeneralSettings.Instance; if (instance == null || !instance.InitManagerOnStart) { return; } instance.StartXRSDK(); }
internal static void AttemptInitializeXRSDKOnLoad() { XRGeneralSettings instance = XRGeneralSettings.Instance; if (instance == null || !instance.InitManagerOnStart) { return; } instance.InitXRSDK(); }
static void Quit() { XRGeneralSettings instance = XRGeneralSettings.Instance; if (instance == null) { return; } instance.DeInitXRSDK(); }
static void Quit() { XRGeneralSettings instance = XRGeneralSettings.Instance; if (instance == null) { return; } instance.OnDisable(); instance.OnDestroy(); }
void EnterPlayMode() { if (!m_IsPlaying) { if (s_RuntimeSettingsInstance == null) { s_RuntimeSettingsInstance = this; } InitXRSDK(); StartXRSDK(); m_IsPlaying = true; } }
void ExitPlayMode() { if (m_IsPlaying) { m_IsPlaying = false; StopXRSDK(); DeInitXRSDK(); if (s_RuntimeSettingsInstance != null) { s_RuntimeSettingsInstance = null; } } }