Esempio n. 1
0
        public static void ApplyDefault()
        {
            EditorUtility.DisplayProgressBar("Applying Default Presets...", "", 1f);

            EditorPrefs.SetBool(_performingSetup, true);
            if (!projectInitialized)
            {
                PerformFirstTimeSetup();
            }

            SKSEditorUtil.RemoveDefine(vrSymbol);
        }
Esempio n. 2
0
        public static void ApplyDefault()
        {
            EditorUtility.DisplayProgressBar("Applying Default Presets...", "", 1f);

            EditorPrefs.SetBool(_performingSetup, true);
            if (!projectInitialized)
            {
                PerformFirstTimeSetup();
            }

            SKSEditorUtil.RemoveDefine(vrSymbol, GetGroupFromBuildTarget(EditorUserBuildSettings.activeBuildTarget));
        }
Esempio n. 3
0
        private static void HandleVRTKImportError()
        {
            ConsoleCallbackHandler.RemoveCallback(LogType.Error, "CS0246");
            EditorUtility.ClearProgressBar();

            EditorUtility.DisplayDialog("No VRTK Installation Found", "No suitable VRTK installation found. VR Portal scripts will not function and may throw errors if VRTK is not present.\n\nIf you have no existing VRTK installation, you should check the 'Also import VRTK' box before applying VR mode.", "Okay");

            SKSEditorUtil.RemoveDefine(vrSymbol);
            performingSetup = false;

            if (performingFirstRunSetup)
            {
                SKSEditorUtil.RemoveDefine(projectSymbol);
                performingFirstRunSetup = false;
            }
        }