docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TutorialEditorUtils

    Contains different utilities used in Tutorials custom editors

    Inheritance
    object
    TutorialEditorUtils
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Tutorials.Core.Editor
    Assembly: Unity.Tutorials.Core.Editor.dll
    Syntax
    public static class TutorialEditorUtils

    Methods

    FindAssets<T>()

    Find assets of type T in the project.

    Declaration
    public static IEnumerable<T> FindAssets<T>() where T : 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

    The URL to open

    In This Article
    • Methods
      • FindAssets<T>()
      • GetActiveFolderPath()
      • OpenUrl(string)
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)