SuperBehaviour SuperBehaviour
SuperBehaviour SuperBehaviour
v0.1.2 [Beta]

Search Results for

    Class SuperPropertyDrawer

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

    Derive from this class to create a custom property drawer for a property.

    public abstract class SuperPropertyDrawer : GUIDrawer
    Inheritance
    object
    GUIDrawer
    SuperPropertyDrawer
    Derived
    AnimationCurveDrawer
    BoolDrawer
    BoundsDrawer
    BoundsIntDrawer
    ColorDrawer
    DoubleDrawer
    EnumDrawer
    FloatDrawer
    GradientDrawer
    IntDrawer
    LongDrawer
    QuaternionDrawer
    RectDrawer
    StringDrawer
    Vector2Drawer
    Vector3Drawer
    Vector4Drawer

    Properties

    attribute

    Attributes of the property.

    public SerializedAttributes attribute { get; }

    Property Value

    SerializedAttributes

    fieldInfo

    FieldInfo or PropertyInfo of the property.

    public MemberInfo fieldInfo { get; }

    Property Value

    MemberInfo

    preferredLabel

    Preferred label of the property.

    public string preferredLabel { get; }

    Property Value

    string

    Methods

    CreatePropertyGUI(SerializedProperty)

    Override this method to make your own UI Toolkit based GUI for the property.

    public virtual VisualElement CreatePropertyGUI(SerializedProperty property)

    Parameters

    property SerializedProperty

    The SuperSerializedProperty to make the custom GUI for.

    Returns

    VisualElement

    The element containing the custom GUI.

    GetPropertyHeight(SuperSerializedProperty, GUIContent)

    Override this method to specify how tall the GUI for this field is in pixels.

    public virtual float GetPropertyHeight(SuperSerializedProperty property, GUIContent label)

    Parameters

    property SuperSerializedProperty

    The SuperSerializedProperty to get the height for.

    label GUIContent

    The label of the property.

    Returns

    float

    The height of the GUI for this field in pixels.

    OnGUI(Rect, SuperSerializedProperty, GUIContent)

    Override this method to make your own IMGUI based GUI for the property.

    public virtual void OnGUI(Rect position, SuperSerializedProperty property, GUIContent label)

    Parameters

    position Rect

    Rectangle on the screen to use for the property GUI.

    property SuperSerializedProperty

    The SuperSerializedProperty to make the custom GUI for.

    label GUIContent

    The label of the property.

    © Lords of Mahlstrom Gaming, all rights reserved.