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
DrawAttributesAfter(SuperSerializedProperty)
Draw Attributes for a property if it has any. (Intended to be rendered after the property)
public static bool DrawAttributesAfter(SuperSerializedProperty property)
Parameters
property
SuperSerializedPropertyThe SuperSerializedProperty to draw the attributes for.
Returns
- bool
True if attributes were drawn; otherwise false.
DrawAttributesBefore(SuperSerializedProperty)
Draw Attributes for a property if it has any. (Intended to be rendered before the property)
public static bool DrawAttributesBefore(SuperSerializedProperty property)
Parameters
property
SuperSerializedPropertyThe SuperSerializedProperty to draw the attributes for.
Returns
- bool
True if attributes were drawn; otherwise false.
DrawButtons(SuperSerializedObject, MethodInfo, bool)
Draw Attributes for a method if it has any.
public static bool DrawButtons(SuperSerializedObject serializedObject, MethodInfo method, bool displayAfter = false)
Parameters
serializedObject
SuperSerializedObjectThe SerializedObject to draw the attributes for.
method
MethodInfoThe MethodInfo to draw the attributes for.
displayAfter
boolWhether to draw the buttons intended to be displayed after the property.
Returns
- bool
True if attributes were drawn; otherwise false.
DrawButtons(SuperSerializedProperty, bool)
Draw buttons for a property if it has any.
public static bool DrawButtons(SuperSerializedProperty property, bool displayAfter = false)
Parameters
property
SuperSerializedPropertyThe SuperSerializedProperty to draw the buttons for.
displayAfter
boolWhether to draw the buttons intended to be displayed after the property.
Returns
- bool
True if buttons were drawn; otherwise false.
DrawHeaders(SuperSerializedProperty)
Draw headers for a property if it has any.
public static bool DrawHeaders(SuperSerializedProperty property)
Parameters
property
SuperSerializedPropertyThe SuperSerializedProperty to draw the headers for.
Returns
- bool
True if headers were drawn; otherwise false.
DrawSpace(SuperSerializedProperty)
Draw Space if the property has been marked with the SpaceAttribute.
public static bool DrawSpace(SuperSerializedProperty property)
Parameters
property
SuperSerializedPropertyThe SuperSerializedProperty to draw the space for.
Returns
- bool
True if space was drawn; otherwise false.
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.