docs.unity3d.com
    Show / Hide Table of Contents

    Class TutorialEditorUtils

    Contains different utilities used in Tutorials custom editors

    Inheritance
    Object
    TutorialEditorUtils
    Namespace: Unity.Tutorials.Core.Editor
    Syntax
    public static class TutorialEditorUtils : object

    Methods

    FindAssets<T>()

    Find assets of type T in the project.

    Declaration
    public static IEnumerable<T> FindAssets<T>()
        where T : UnityEngine.Object
    Returns
    Type Description
    IEnumerable<T>

    Assets of type T found in the project.

    Type Parameters
    Name Description
    T

    Type of assets to look for.

    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
    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