docs.unity3d.com
    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 © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023