Search Results for

    Show / Hide Table of Contents

    Class CustomAction

    Custom actions are actions triggered by events outside of Interacting or combining (e.g. UI quizes) and can send parameters that are then checked against the statemachine.

    This class is also what authors can use to trigger actions beyond the scope of TrainAR and can be handled by the statemachine by using the Action Node and the "Custom Action" type.

    CustomAction can either be triggered form the instantiated or static context.

    Inheritance
    System.Object
    CustomAction
    Namespace: Static
    Assembly: Assembly-CSharp.dll
    Syntax
    public class CustomAction : MonoBehaviour

    Methods

    | Improve this Doc View Source

    DynamicTrigger(String)

    Triggers a CustomAction with the given parameter.

    Declaration
    public void DynamicTrigger(string parameter)
    Parameters
    Type Name Description
    System.String parameter

    The parameter to be checked against the statemachine.

    | Improve this Doc View Source

    StaticTrigger(String)

    Triggers a CustomAction with the given parameter from a static context.

    Declaration
    public static bool StaticTrigger(string parameter)
    Parameters
    Type Name Description
    System.String parameter

    The parameter to be checked against the statemachine.

    Returns
    Type Description
    System.Boolean

    Whether this was a correct statechange and triggered to statemachine to proceed.

    • Improve this Doc
    • View Source
    In This Article
    Back to top TrainAR Documentation