docs.unity3d.com
    Show / Hide Table of Contents

    Class Tutorial

    A container for tutorial pages which implement the tutorial's functionality.

    Inheritance
    Object
    Object
    ScriptableObject
    Tutorial
    Inherited Members
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(String)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(Object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, Boolean)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, Single)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectOfType<T>()
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.ToString()
    Object.name
    Object.hideFlags
    Namespace: Unity.InteractiveTutorials
    Syntax
    public class Tutorial : ScriptableObject, ISerializationCallbackReceiver

    Constructors

    Tutorial()

    Declaration
    public Tutorial()

    Fields

    TutorialTitle

    The title shown in the window.

    Declaration
    [Header("Content")]
    public LocalizableString TutorialTitle
    Field Value
    Type Description
    LocalizableString

    Properties

    assetSelectedOnExit

    Obsolete.

    Declaration
    [Obsolete]
    public Object assetSelectedOnExit { get; set; }
    Property Value
    Type Description
    Object

    completed

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

    completedPage

    Obsolete.

    Declaration
    [Obsolete]
    public TutorialWelcomePage completedPage { get; }
    Property Value
    Type Description
    TutorialWelcomePage

    currentPage

    Declaration
    public TutorialPage currentPage { get; }
    Property Value
    Type Description
    TutorialPage

    currentPageIndex

    Declaration
    public int currentPageIndex { get; }
    Property Value
    Type Description
    Int32

    exitBehavior

    How should the tutorial behave upon exiting.

    Declaration
    public Tutorial.ExitBehavior exitBehavior { get; set; }
    Property Value
    Type Description
    Tutorial.ExitBehavior

    isAutoCompleting

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

    lessonId

    Lessond ID, arbitrary string, typically integers are used.

    Declaration
    public string lessonId { get; set; }
    Property Value
    Type Description
    String

    pageCount

    Declaration
    public int pageCount { get; }
    Property Value
    Type Description
    Int32

    pages

    All the pages of this tutorial.

    Declaration
    public IEnumerable<TutorialPage> pages { get; }
    Property Value
    Type Description
    IEnumerable<TutorialPage>

    skipped

    Is this being skipped currently.

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

    skipTutorialBehavior

    How should the tutorial behave upon skipping.

    Declaration
    public Tutorial.SkipTutorialBehavior skipTutorialBehavior { get; set; }
    Property Value
    Type Description
    Tutorial.SkipTutorialBehavior

    tutorialTitle

    deprecated, use TutorialTitle

    Declaration
    [Obsolete]
    public string tutorialTitle { get; set; }
    Property Value
    Type Description
    String

    version

    Tutorial version, arbitrary string, typically integers are used.

    Declaration
    public string version { get; set; }
    Property Value
    Type Description
    String

    welcomePage

    Obsolete.

    Declaration
    [Obsolete]
    public TutorialWelcomePage welcomePage { get; }
    Property Value
    Type Description
    TutorialWelcomePage

    WindowLayout

    The layout used by the tutorial

    Declaration
    public Object WindowLayout { get; set; }
    Property Value
    Type Description
    Object

    Methods

    AddPage(TutorialPage)

    Adds a page to the tutorial

    Declaration
    public void AddPage(TutorialPage tutorialPage)
    Parameters
    Type Name Description
    TutorialPage tutorialPage

    The page to be added

    GoToPreviousPage()

    Declaration
    public void GoToPreviousPage()

    OnAfterDeserialize()

    UnityEngine.ISerializationCallbackReceiver override, do not call.

    Declaration
    public void OnAfterDeserialize()
    Implements
    ISerializationCallbackReceiver.OnAfterDeserialize()

    OnBeforeSerialize()

    UnityEngine.ISerializationCallbackReceiver override, do not call.

    Declaration
    public void OnBeforeSerialize()
    Implements
    ISerializationCallbackReceiver.OnBeforeSerialize()

    OnGoingBack(TutorialPage)

    Declaration
    protected virtual void OnGoingBack(TutorialPage page)
    Parameters
    Type Name Description
    TutorialPage page

    OnPageInitiated(TutorialPage, Int32)

    Declaration
    protected virtual void OnPageInitiated(TutorialPage page, int index)
    Parameters
    Type Name Description
    TutorialPage page
    Int32 index

    OnTutorialCompleted(Boolean)

    Declaration
    protected virtual void OnTutorialCompleted(bool exitTutorial)
    Parameters
    Type Name Description
    Boolean exitTutorial

    OnTutorialInitiated()

    Declaration
    protected virtual void OnTutorialInitiated()

    RaiseTutorialModifiedEvent()

    Raises the Modified events for this asset.

    Declaration
    public void RaiseTutorialModifiedEvent()

    RaiseTutorialPagesModified()

    TODO 2.0 merge with RaiseTutorialModified?

    Declaration
    public void RaiseTutorialPagesModified()

    SkipToLastPage()

    Declaration
    public void SkipToLastPage()

    StartAutoCompletion()

    Declaration
    public void StartAutoCompletion()

    StopAutoCompletion()

    Declaration
    public void StopAutoCompletion()

    StopTutorial()

    Declaration
    public void StopTutorial()

    TryGoToNextPage()

    Declaration
    public bool TryGoToNextPage()
    Returns
    Type Description
    Boolean

    Events

    goingBack

    Raised when we are going back to the previous page.

    Declaration
    public event Action<TutorialPage> goingBack
    Event Type
    Type Description
    Action<TutorialPage>

    pageInitiated

    Raised when a page of this tutorial is being initiated.

    Declaration
    public event Action<TutorialPage, int> pageInitiated
    Event Type
    Type Description
    Action<TutorialPage, Int32>

    tutorialCompleted

    Raised when this tutorial is completed.

    Declaration
    public event Action<bool> tutorialCompleted
    Event Type
    Type Description
    Action<Boolean>

    tutorialInitiated

    Raised when this tutorial is being initiated.

    Declaration
    public event Action tutorialInitiated
    Event Type
    Type Description
    Action

    TutorialModified

    Raised when any tutorial is modified.

    Declaration
    public static event Action<Tutorial> TutorialModified
    Event Type
    Type Description
    Action<Tutorial>
    Remarks

    Raised before tutorialPagesModified event.

    tutorialPagesModified

    Raised when any page of any tutorial tutorial is modified.

    Declaration
    public static event Action<Tutorial> tutorialPagesModified
    Event Type
    Type Description
    Action<Tutorial>
    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