docs.unity.cn
    Show / Hide Table of Contents

    Class UserStartupCode

    Runs IET project initialization logic.

    Inheritance
    Object
    UserStartupCode
    Namespace: Unity.Tutorials.Core.Editor
    Syntax
    public static class UserStartupCode : object

    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:

    1. 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.
    2. 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.
    3. 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.
    4. If Tutorials window is already created, it is simply brought to the foreground and focused.
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Thursday, July 8, 2021