private static void OnGUI()
        {
            EditorGUILayout.LabelField(DEMO_BUILD_HEADER, EditorStyles.boldLabel);

            bool showBuildPreference;
            bool newShowBuildPreference;

            using (var scope = new EditorGUILayout.HorizontalScope())
            {
                showBuildPreference = BuildTools.IsAutoShowBuildOnSuccessEnabled();
                EditorGUILayout.LabelField(SHOW_BUILD_RESULT_LABEL, GUILayout.MinWidth(MIN_LABEL_WIDTH));
                newShowBuildPreference = EditorGUILayout.Toggle(showBuildPreference);
            }

            if (showBuildPreference != newShowBuildPreference)
            {
                BuildTools.SetAutoShowBuildOnSuccessPreference(newShowBuildPreference);
            }
        }
        private static void OnGUI()
        {
            EditorGUILayout.LabelField(COMPILER_OPTIONS_HEADER, EditorStyles.boldLabel);

            bool autoGeneratePreference;
            bool newAutoGeneratePreference;

            using (var scope = new EditorGUILayout.HorizontalScope())
            {
                autoGeneratePreference = CompilerOverrideTools.IsCompilerOverrideFileAutoGenerationEnabled();
                EditorGUILayout.LabelField(AUTO_GENERATE_PREFERENCE_LABEL, GUILayout.MinWidth(MIN_LABEL_WIDTH));
                newAutoGeneratePreference = EditorGUILayout.Toggle(autoGeneratePreference);
            }

            if (autoGeneratePreference != newAutoGeneratePreference)
            {
                CompilerOverrideTools.SetAutoGenerateCompilerOverrideFilePreference(newAutoGeneratePreference);
            }

            if (GUILayout.Button(REGENERATE_COMPILER_FILE_BUTTON))
            {
                CompilerOverrideTools.RegenerateCompilerOverrideFile();
            }

            EditorGUILayout.Space();
            EditorGUILayout.LabelField(DEMO_BUILD_HEADER, EditorStyles.boldLabel);

            bool showBuildPreference;
            bool newShowBuildPreference;

            using (var scope = new EditorGUILayout.HorizontalScope())
            {
                showBuildPreference = BuildTools.IsAutoShowBuildOnSuccessEnabled();
                EditorGUILayout.LabelField(SHOW_BUILD_RESULT_LABEL, GUILayout.MinWidth(MIN_LABEL_WIDTH));
                newShowBuildPreference = EditorGUILayout.Toggle(showBuildPreference);
            }

            if (showBuildPreference != newShowBuildPreference)
            {
                BuildTools.SetAutoShowBuildOnSuccessPreference(newShowBuildPreference);
            }
        }
Exemple #3
0
 private static void BuildWearableDemo()
 {
     BuildTools.BuildWearableDemo();
 }
 public static void BuildWearableDemo()
 {
     BuildTools.BuildWearableDemo();
 }
 public static void BuildWearableProxy()
 {
     BuildTools.BuildProxyServer();
 }