docs.unity3d.com
    Show / Hide Table of Contents

    Class TutorialManager

    Manages the startup and transitions of tutorials.

    Inheritance
    Object
    TutorialManager
    Namespace: Unity.Tutorials.Core.Editor
    Syntax
    public class TutorialManager : ScriptableObject

    Properties

    ActiveTutorial

    The currently active tutorial, if any.

    Declaration
    public Tutorial ActiveTutorial { get; }
    Property Value
    Type Description
    Tutorial

    Instance

    The singleton instance.

    Declaration
    public static TutorialManager Instance { get; }
    Property Value
    Type Description
    TutorialManager

    IsLoadingLayout

    Are we currently loading a window layout.

    Declaration
    public static bool IsLoadingLayout { get; }
    Property Value
    Type Description
    Boolean
    Remarks

    A window layout load typically happens when the project is started for the first time and the project's startup settings specify a window layout for the project, or when entering or exiting a tutorial with a window layout specified.

    IsTransitioningBetweenTutorials

    Are we currently (during this frame) transitioning from one tutorial to another.

    Declaration
    public bool IsTransitioningBetweenTutorials { get; }
    Property Value
    Type Description
    Boolean
    Remarks

    This transition typically happens when using a Switch Tutorial button on a tutorial page.

    Methods

    StartTutorial(Tutorial)

    Starts a tutorial.

    Declaration
    public void StartTutorial(Tutorial tutorial)
    Parameters
    Type Name Description
    Tutorial tutorial

    The tutorial to be started.

    Remarks

    The caller of the funtion is responsible for positioning the TutorialWindow for the tutorials. If no TutorialWindow is visible, it is created and shown as a free-floating window. If the currently active scene has unsaved changes, the user is asked to save them. If we are in Play Mode, it is exited. Note that currently there is no explicit way to quit a tutorial. Instead, a tutorial should be quit either by user interaction or by closing the TutorialWindow programmatically.

    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