SuperBehaviour SuperBehaviour
SuperBehaviour SuperBehaviour
v0.1.2 [Beta]

Search Results for

    Class EditorSuperGUILayout

    Namespace
    LoM.Super.Editor
    Assembly
    LoM.Super.Editor.dll

    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
    object
    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 SuperSerializedProperty

    The 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 SuperSerializedProperty

    The 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 SuperSerializedObject

    The SerializedObject to draw the attributes for.

    method MethodInfo

    The MethodInfo to draw the attributes for.

    displayAfter bool

    Whether 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 SuperSerializedProperty

    The SuperSerializedProperty to draw the buttons for.

    displayAfter bool

    Whether 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 SuperSerializedProperty

    The 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 SuperSerializedProperty

    The 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 SuperSerializedProperty

    The SuperSerializedProperty to make the field for.

    includeChildren bool

    If 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 SuperSerializedProperty

    The SuperSerializedProperty to make the field for.

    label GUIContent

    Optional 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 bool

    If 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 SuperSerializedProperty

    The SuperSerializedProperty to make the field for.

    label GUIContent

    Optional 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 SuperSerializedProperty

    The 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.

    © Lords of Mahlstrom Gaming, all rights reserved.