Class WalkthroughStep | MARS | 1.0.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class WalkthroughStep

    Contains information needed to process one step of a walkthrough

    Inheritance
    Object
    WalkthroughStep
    Namespace: Unity.MARS.Templates
    Syntax
    public class WalkthroughStep : MonoBehaviour

    Properties

    CanProgress

    Returns true if this step does not currently have any triggers remaining to fire

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

    CanSkip

    Returns true if this step does not block, or has been completed at least once.

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

    Completed

    True if this step's triggers have been activated at least once

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

    Description

    The purpose of this step. Appends a (Complete) if complete and normally has triggers.

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

    Methods

    CancelStep()

    Ends this step being the focus of the current walkthrough

    Declaration
    public void CancelStep()

    Initialize()

    Ensures the step visuals are hidden until active and that all triggers are accounted for

    Declaration
    public void Initialize()

    StartStep(Action<Boolean>, Boolean)

    Makes this step and its triggers the active focus of a walkthrough

    Declaration
    public void StartStep(Action<bool> onComplete, bool allowAutoProgress = true)
    Parameters
    Type Name Description
    Action<Boolean> onComplete

    Callback to fire when this step's triggers are complete

    Boolean allowAutoProgress

    If this step is allow to auto-progress during this activation

    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