示例#1
0
        public void SetupBeforeAllTests()
        {
            projectSettingsBackup = EditingContextManager.LoadProjectSettings();
            userSettingsBackup    = EditingContextManager.LoadUserSettings();

            EditingContextManager.ShowEditorVR();
        }
        public void LoadUserSettings_NewerThanProjectSettings()
        {
            EditingContextManager.SaveUserSettings(newSettings);
            var loaded = EditingContextManager.LoadUserSettings();

            Assert.AreEqual(newSettings.defaultContextName, loaded.defaultContextName);
        }
        public void SetupBeforeAllTests()
        {
            projectSettingsBackup = EditingContextManager.LoadProjectSettings();
            userSettingsBackup    = EditingContextManager.LoadUserSettings();

#if UNITY_EDITORXR_EDIT_MODE_SUPPORT
            EditingContextManager.ShowEditorXR();
#endif
        }
        public void LoadUserSettings_ProjectSettingsFallback()
        {
            if (File.Exists(EditingContextManager.userSettingsPath))
            {
                File.Delete(EditingContextManager.userSettingsPath);
            }

            var projectSettings = EditingContextManager.LoadProjectSettings();
            var userSettings    = EditingContextManager.LoadUserSettings();

            Assert.AreEqual(projectSettings.defaultContextName, userSettings.defaultContextName);
        }