Class PostProcessEffectBaseEditor
The base class for all post-processing effect related editors. If you want to customize the look of a custom post-processing effect, inherit from PostProcessEffectEditor<T> instead.
Namespace: UnityEditor.Rendering.PostProcessing
Syntax
public class PostProcessEffectBaseEditor
Methods
GetDisplayTitle()
Returns the label to use as the effect title. You can override this to return a custom label, else it will use the effect type as the title.
Declaration
public virtual string GetDisplayTitle()
Returns
Type | Description |
---|---|
String | The label to use as the effect title |
OnDisable()
Called when the editor is de-initialized.
Declaration
public virtual void OnDisable()
OnEnable()
Called when the editor is initialized.
Declaration
public virtual void OnEnable()
OnInspectorGUI()
Called every time the inspector is being redrawn. This is where you should add your UI drawing code.
Declaration
public virtual void OnInspectorGUI()
PropertyField(SerializedParameterOverride)
Draws a property UI element.
Declaration
protected void PropertyField(SerializedParameterOverride property)
Parameters
Type | Name | Description |
---|---|---|
SerializedParameterOverride | property | The property to draw |
PropertyField(SerializedParameterOverride, GUIContent)
Draws a property UI element with a custom title and/or tooltip.
Declaration
protected void PropertyField(SerializedParameterOverride property, GUIContent title)
Parameters
Type | Name | Description |
---|---|---|
SerializedParameterOverride | property | The property to draw |
GUIContent | title | A custom title and/or tooltip |
Repaint()
Repaints the inspector.
Declaration
public void Repaint()