示例#1
0
 public static void PropertyField(AutoProperty ap, GUIContent content = null)
 {
     if (content == null)
     {
         content = ap.content;
     }
     EditorGUILayout.PropertyField(ap, content);
 }
示例#2
0
        public static bool ToggleProperty(AutoProperty ap, GUIContent content = null, GUIStyle style = null)
        {
            if (content == null)
            {
                content = ap.content;
            }
            if (style != null)
            {
                ap.p.boolValue = EditorGUILayout.ToggleLeft(content, ap.p.boolValue, style);
            }
            else
            {
                ap.p.boolValue = EditorGUILayout.ToggleLeft(content, ap.p.boolValue);
            }

            return(ap.p.boolValue);
        }