Class EditorSuperGUILayout
Editor GUI Layout for SuperSerializedProperty.
All methods are similar to their EditorGUILayout counterparts but take a SuperSerializedProperty instead of a SerializedProperty.
public static class EditorSuperGUILayout
- Inheritance
-
EditorSuperGUILayout
Methods
PropertyField(SuperSerializedProperty, bool, params GUILayoutOption[])
Make a field for SerializedProperty.
public static bool PropertyField(SuperSerializedProperty property, bool includeChildren = true, params GUILayoutOption[] options)
Parameters
property
SuperSerializedPropertyThe SuperSerializedProperty to make the field for.
includeChildren
boolIf true the property including children is drawn; otherwise only the control itself (such as only a foldout but nothing below it).
options
GUILayoutOption[]An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the style.
See Also GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Returns
- bool
True if the property has children and is expanded and includeChildren was set to false; otherwise false.
PropertyField(SuperSerializedProperty, GUIContent, bool, params GUILayoutOption[])
Make a field for SerializedProperty.
public static bool PropertyField(SuperSerializedProperty property, GUIContent label, bool includeChildren = true, params GUILayoutOption[] options)
Parameters
property
SuperSerializedPropertyThe SuperSerializedProperty to make the field for.
label
GUIContentOptional label to use. If not specified the label of the property itself is used.
Use GUIContent.none to not display a label at all.includeChildren
boolIf true the property including children is drawn; otherwise only the control itself (such as only a foldout but nothing below it).
options
GUILayoutOption[]An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the style.
See Also GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Returns
- bool
True if the property has children and is expanded and includeChildren was set to false; otherwise false.
PropertyField(SuperSerializedProperty, GUIContent, params GUILayoutOption[])
Make a field for SerializedProperty.
public static bool PropertyField(SuperSerializedProperty property, GUIContent label, params GUILayoutOption[] options)
Parameters
property
SuperSerializedPropertyThe SuperSerializedProperty to make the field for.
label
GUIContentOptional label to use. If not specified the label of the property itself is used.
Use GUIContent.none to not display a label at all.options
GUILayoutOption[]An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the style.
See Also GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Returns
- bool
True if the property has children and is expanded and includeChildren was set to false; otherwise false.
PropertyField(SuperSerializedProperty, params GUILayoutOption[])
Make a field for SerializedProperty.
public static bool PropertyField(SuperSerializedProperty property, params GUILayoutOption[] options)
Parameters
property
SuperSerializedPropertyThe SuperSerializedProperty to make the field for.
options
GUILayoutOption[]
Returns
- bool
True if the property has children and is expanded and includeChildren was set to false; otherwise false.