docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TutorialWindowUtils

    Wrapper class for TutorialWindow public APIs

    Inheritance
    object
    TutorialWindowUtils
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Tutorials.Core.Editor
    Assembly: Unity.Tutorials.Core.Editor.dll
    Syntax
    public static class TutorialWindowUtils

    Properties

    CurrentTutorial

    The currently active tutorial, if any.

    Declaration
    public static Tutorial CurrentTutorial { get; }
    Property Value
    Type Description
    Tutorial

    IsLoadingLayout

    Are we currently loading a window layout.

    Declaration
    public static bool IsLoadingLayout { get; }
    Property Value
    Type Description
    bool
    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 static bool IsTransitioningBetweenTutorials { get; }
    Property Value
    Type Description
    bool
    Remarks

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

    Methods

    ClearLocalizationCache()

    Clear localization table cache

    Declaration
    public static void ClearLocalizationCache()

    StartTutorial(Tutorial)

    Starts a tutorial.

    Declaration
    public static 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.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)