Lens Scripting API

    State class for a StateMachine

    Index

    Constructors

    Properties

    stateElapsedTime: number = 0
    stateStartTime: number = 0

    Accessors

    • get name(): string

      Returns string

    Methods

    • Check if any of SignalTransitions are true. Called once per Signal

      Parameters

      • signal: string

        sent

      • data: any

        optional from signal

      Returns Transition

    • Check if any of the UpdateTransitions are true. Called once per Update

      Returns Transition

    • Triggers the onEnter callback

      Returns void

    • Triggers the onExit callback

      Returns void

    • Triggers the onLateUpdate callback

      Returns void

    • Triggers the onSignal callback

      Returns void

    • Triggers the onUpdate callback

      Returns void

    MMNEPVFCICPMFPCPTTAAATR