Skip to main content
An action performed when an associated State Machine Listener is triggered. For more information, see Listener Action Scripts.

Methods

init

Called once when the listener is created or attached.

perform

Called when the associated State Machine Listener is triggered. This method includes a PointerEvent parameter containing details about the triggering interaction.
function perform(self: MyListenerAction, pointerEvent: PointerEvent)
  print(pointerEvent.id)
end