Exemplo n.º 1
0
        public static void OtherGUI()
        {
            ScriptableObject   scriptableObj = settings;
            SerializedObject   serialObj     = new SerializedObject(scriptableObj);
            SerializedProperty serialProp    = serialObj.FindProperty("customHierarchy");

            ///////////////
            GUILayout.Box("COLOR SETTINGS", headerStyle, GUILayout.ExpandWidth(true), headerHeight);

            GUILayout.Space(10f);

            EditorGUILayout.PropertyField(serialProp, true);
            serialObj.ApplyModifiedProperties();

            GUILayout.Space(10f);

            settings.debugColor = EditorGUILayout.ColorField("Color debug", settings.debugColor);

            if (GUILayout.Button("Test Debug color"))
            {
                Helpful.Debug("Hello from Kinogoblin!");
            }

            GUILayout.Space(10f);

            if (GUILayout.Button("Load Kinogoblin layout"))
            {
                LayoutLoader.LoadKinogoblinLayout();
            }

            GUILayout.Space(10f);

            if (GUILayout.Button("Cleanup Missing Scripts"))
            {
                CleanupMissingScripts();
            }

            GUILayout.Space(10f);

            settings.customView = EditorGUILayout.Toggle("Custom View", settings.customView);
            settings.debugSend  = EditorGUILayout.Toggle("Debug send", settings.debugSend);
        }