UnityXRMockLoaderSettings GetSettings()
        {
            UnityXRMockLoaderSettings settings = null;
            // When running in the Unity Editor, we have to load user's customization of configuration data directly from
            // EditorBuildSettings. At runtime, we need to grab it from the static instance field instead.
#if UNITY_EDITOR
            UnityEditor.EditorBuildSettings.TryGetConfigObject(UnityXRMockLoaderConstants.k_SettingsKey, out settings);
#else
            settings = UnityXRMockLoaderSettings.s_RuntimeInstance;
#endif
            return settings;
        }
Exemple #2
0
        public void Awake()
        {
#if !UNITY_EDITOR
            s_RuntimeInstance = this;
#endif
        }