Class UserStartupCode
Runs IET project initialization logic.
Inherited Members
Namespace: Unity.Tutorials.Core.Editor
Syntax
[InitializeOnLoad]
public static class UserStartupCode
Methods
ShowTutorialWindow()
Shows Tutorials window using the currently specified behaviour.
Declaration
public static TutorialWindow ShowTutorialWindow()
Returns
Type | Description |
---|---|
TutorialWindow | The the created, or aleady existing, window instance. |
Remarks
Different behaviors:
- If a single root tutorial container (TutorialContainer.ParentContainer is null) that has Project Layout specified exists, the window is loaded and shown using the specified project window layout (old behaviour). If the project layout does not contain Tutorials window, the window is shown an as a free-floating window.
- If no root tutorial containers exist, or a root container's Project Layout is not specified, the window is shown by anchoring and docking it next to the Inspector (new behaviour). If the Inspector is not available, the window is shown an as a free-floating window.
- If there is more than one root tutorial container with different Project Layout setting in the project, one asset is chosen randomly to specify the behavior.
- If Tutorials window is already created, it is simply brought to the foreground and focused.