Class AttributeDecorator
The base abstract class for all attribute decorators.
Inheritance
System.Object
AttributeDecorator
Namespace: UnityEditor.Rendering.PostProcessing
Syntax
public abstract class AttributeDecorator
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 |
---|---|
System.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 |
System.Attribute | attribute | A reference to the property attribute set on the original field |
Returns
Type | Description |
---|---|
System.Boolean |
|