public static void PropertyField(AutoProperty ap, GUIContent content = null) { if (content == null) { content = ap.content; } EditorGUILayout.PropertyField(ap, content); }
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); }