Class EditorUtilities | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class EditorUtilities

    A set of editor utilities used in post-processing editors.

    Inheritance
    System.Object
    EditorUtilities
    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
    System.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
    System.Boolean

    isTargetingMobiles

    Returns true if the current target is a mobile, false otherwise.

    Declaration
    public static bool isTargetingMobiles { get; }
    Property Value
    Type Description
    System.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
    System.String text

    The description

    System.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
    System.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 for the given label and tooltip. These are recycled internally and help reduce the garbage collector pressure in the editor.

    Declaration
    public static GUIContent GetContent(string textAndTooltip)
    Parameters
    Type Name Description
    System.String textAndTooltip

    The label and tooltip separated by a | character

    Returns
    Type Description
    GUIContent

    A recycled

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023