Search Unity

Inspector Related PropertyAttribute [Reference]

Discussion in 'Scripting' started by MadeThisName, Sep 25, 2015.

  1. MadeThisName

    MadeThisName

    Joined:
    Mar 14, 2015
    Posts:
    115
    Inspector Related PropertyAttribute

    FormerlySerializedAsAttribute
    – Provides a way to rename fields after they’ve been assigned without losing their values.

    HeaderAttribute – A built-in PropetyAttribute that adds a header over a script variable in the inspector.

    HelpURLAttribute – Provides a custom URL for documentation.

    HideInInspector – Hides a field from being displayed in the inspector (although it is still serialized).

    MultilineAttribute – A built-in PropertyAttribute that changes string editing in the inspector to a multi-line textbox.

    PropertyAttribute – A base class to derive custom property attributes from. These attributes are used over script public variables to control how they are drawn in the inspector.

    RangeAttribute – A built-in PropertyAttribute that constrains an int/float field in the inspector to a specified range.

    SerializeField – Notifies Unity that the field decorated by the attribute should be serialized.

    SpaceAttribute – A built-in PropertyAttribute that adds spacing around script variables in the inspector.

    TextAreaAttribute – A built-in PropertyAttribute that allows string editing in the inspector inside a flexible text area.

    TooltipAttribute – A built-in PropertyAttribute that adds a tooltip to script variables in the inspector.
     
    Last edited: Sep 25, 2015