Class TutorialEditorUtils
Contains different utilities used in Tutorials custom editors
Inherited Members
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 |