docs.unity3d.com
    Show / Hide Table of Contents

    Class TutorialEditorUtils

    Contains different utilities used in Tutorials custom editors

    Inheritance
    Object
    TutorialEditorUtils
    Namespace: Unity.InteractiveTutorials
    Syntax
    public static class TutorialEditorUtils

    Methods

    EventIsNotInState(SerializedProperty, UnityEventCallState)

    Checks if a UnityEvent property is not in a specific execution state

    Declaration
    public static bool EventIsNotInState(SerializedProperty eventProperty, UnityEventCallState state)
    Parameters
    Type Name Description
    SerializedProperty eventProperty

    A property representing the UnityEvent (or derived class)

    UnityEventCallState state
    Returns
    Type Description
    Boolean

    True if the event is in the expected state

    GetActiveFolderPath()

    Same as ProjectWindowUtil.GetActiveFolderPath() but works also in 1-panel view.

    Declaration
    public static string GetActiveFolderPath()
    Returns
    Type Description
    String

    Returns path with forward slashes

    OpenUrl(String)

    Opens an Url in the browser. Links to Unity's websites will open only if the user is logged in.

    Declaration
    public static void OpenUrl(string url)
    Parameters
    Type Name Description
    String url

    RenderEventStateWarning()

    Renders a warning box about the state of the event

    Declaration
    public static void RenderEventStateWarning()
    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