Class AttributeDecorator
Base class that wraps a property drawer with attribute defined decorator.
Namespace: Unity.MARS
Syntax
public abstract class AttributeDecorator
Methods
OnGUI(SerializedProperty, GUIContent, Attribute)
Called to draw the decorator.
Declaration
public abstract bool OnGUI(SerializedProperty property, GUIContent label, Attribute attribute)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializedProperty | property | Property to be drawn. |
| GUIContent | label | Label of the property |
| Attribute | attribute | Attributes being applied to decorator. |
Returns
| Type | Description |
|---|---|
| Boolean | Returns 'true' if decorator was applied. |