Class EditorUtilities
A set of editor utilities used in post-processing editors.
Namespace: UnityEditor.Rendering.PostProcessing
Syntax
public static class EditorUtilities
Properties
isTargetingConsoles
Returns true
if the current target is a console, false
otherwise.
Declaration
public static bool isTargetingConsoles { get; }
Property Value
Type | Description |
---|---|
Boolean |
isTargetingConsolesOrMobiles
Returns true
if the current target is a console or a mobile, false
otherwise.
Declaration
public static bool isTargetingConsolesOrMobiles { get; }
Property Value
Type | Description |
---|---|
Boolean |
isTargetingMobiles
Returns true
if the current target is a mobile, false
otherwise.
Declaration
public static bool isTargetingMobiles { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
DrawFixMeBox(String, Action)
Draws a UI box with a description and a "Fix Me" button next to it.
Declaration
public static void DrawFixMeBox(string text, Action action)
Parameters
Type | Name | Description |
---|---|---|
String | text | The description |
Action | action | The action to execute when the button is clicked |
DrawHeaderLabel(String)
Draws a header label.
Declaration
public static void DrawHeaderLabel(string title)
Parameters
Type | Name | Description |
---|---|---|
String | title | The label to display as a header |
DrawOverrideCheckbox(Rect, SerializedProperty)
Draws a toggle using the "override checkbox" style.
Declaration
public static void DrawOverrideCheckbox(Rect rect, SerializedProperty property)
Parameters
Type | Name | Description |
---|---|---|
Rect | rect | The position and size of the toggle |
SerializedProperty | property | The override state property for the toggle |
DrawSplitter()
Draws a horizontal split line.
Declaration
public static void DrawSplitter()
GetContent(String)
Gets a
Declaration
public static GUIContent GetContent(string textAndTooltip)
Parameters
Type | Name | Description |
---|---|---|
String | textAndTooltip | The label and tooltip separated by a |
Returns
Type | Description |
---|---|
GUIContent | A recycled |