Package 

Object StateMachine.Companion

    • Method Detail

      • fromArtboard

         final StateMachine fromArtboard(Artboard artboard, String stateMachineName)

        Creates a new StateMachine from an Artboard.

        ⚠️ The lifetime of the returned state machine is managed by the caller. Make sure to call close when you are done with it to release its resources.

        Parameters:
        artboard - The Artboard to instantiate the state machine from.
        stateMachineName - The name of the state machine to load.