예제 #1
0
 protected void PropertyFieldToggleGroup2(SerializedProperty obj, string label, Runnable0 runnable) {
     obj.boolValue = EditorGUILayout.Toggle(label, obj.boolValue);
     
     bool savedState = GUI.enabled;
     GUI.enabled = obj.boolValue;
     runnable();
     GUI.enabled = savedState;
 }
예제 #2
0
 protected void AddToActionQueue(Runnable0 action)
 {
     actionQueue.Add(action);
 }
예제 #3
0
        // ===========================================================
        // Constants
        // ===========================================================

        // ===========================================================
        // Fields
        // ===========================================================

        // ===========================================================
        // Methods for/from SuperClass/Interfaces
        // ===========================================================

        // ===========================================================
        // Methods
        // ===========================================================

        protected void Indent(Runnable0 runnable)
        {
            EditorGUI.indentLevel++;
            runnable();
            EditorGUI.indentLevel--;
        }
예제 #4
0
        protected void PropertyFieldToggleGroup(SerializedProperty obj, string label, Runnable0 runnable)
        {
            obj.boolValue = EditorGUILayout.BeginToggleGroup(label, obj.boolValue);

            runnable();
            EditorGUILayout.EndToggleGroup();
        }
예제 #5
0
 protected void AddToActionQueue(Runnable0 action) {
     actionQueue.Add(action);
 }
예제 #6
0
    // ===========================================================
    // Constants
    // ===========================================================

    // ===========================================================
    // Fields
    // ===========================================================

    // ===========================================================
    // Methods for/from SuperClass/Interfaces
    // ===========================================================

    // ===========================================================
    // Methods
    // ===========================================================
    
    protected void Indent(Runnable0 runnable) {
        EditorGUI.indentLevel++;
        runnable();
        EditorGUI.indentLevel--;
    }
예제 #7
0
 protected void PropertyFieldToggleGroupInv2(SerializedProperty obj, string label, Runnable0 runnable) {
     obj.boolValue = !EditorGUILayout.Toggle(label, !obj.boolValue);
     
     bool savedState = GUI.enabled;
     GUI.enabled = !obj.boolValue;
     runnable();
     GUI.enabled = savedState;
 }
예제 #8
0
 protected void PropertyFieldToggleGroup(SerializedProperty obj, string label, Runnable0 runnable) {
     obj.boolValue = EditorGUILayout.BeginToggleGroup(label, obj.boolValue);
     
     runnable();
     EditorGUILayout.EndToggleGroup();
 }