Class TutorialModalWindow
A modal/utility window that can display TutorialWelcomePage as its content. Optionally utilizes masking for modality.
Namespace: Unity.Tutorials.Core.Editor
Syntax
public class TutorialModalWindow : EditorWindow
Properties
MaskingEnabled
Does the window utilize masking for modality effect.
Declaration
public static bool MaskingEnabled { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
Remember to set prior to calling TryToShow().
Visible
Is the window currently visible.
Declaration
public static bool Visible { get; }
Property Value
Type | Description |
---|---|
Boolean |
WelcomePage
In order to set the welcome page, use the Show() function instead.
Declaration
public TutorialWelcomePage WelcomePage { get; }
Property Value
Type | Description |
---|---|
TutorialWelcomePage |
Methods
Show(TutorialWelcomePage, Action)
Shows the window using the provided content.
Declaration
public static void Show(TutorialWelcomePage welcomePage, Action onClose = null)
Parameters
Type | Name | Description |
---|---|---|
TutorialWelcomePage | welcomePage | Content to be shown. |
Action | onClose | Optional callback to be called when the window is closed. |
Remarks
Shown as a utility window, https://docs.unity3d.com/ScriptReference/EditorWindow.ShowUtility.html