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