Class AttributeDecorator
The base abstract class for all attribute decorators.
Namespace: UnityEditor.Rendering.PostProcessing
Syntax
public abstract class AttributeDecorator : object
Methods
IsAutoProperty()
Override this and return false if you want to customize the override checkbox
position, else it'll automatically draw it and put the property content in a
horizontal scope.
Declaration
public virtual bool IsAutoProperty()
Returns
| Type | Description |
|---|---|
| Boolean |
|
OnGUI(SerializedProperty, SerializedProperty, GUIContent, Attribute)
The rendering method called for the custom GUI.
Declaration
public abstract bool OnGUI(SerializedProperty property, SerializedProperty overrideState, GUIContent title, Attribute attribute)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializedProperty | property | The property to draw the UI for |
| SerializedProperty | overrideState | The override checkbox property |
| GUIContent | title | The title and tooltip for the property |
| Attribute | attribute | A reference to the property attribute set on the original field |
Returns
| Type | Description |
|---|---|
| Boolean |
|