Phaser API Documentation

  Version: 
dispatchEvent(event, [callback])

Description:

Internal method that will emit a TweenData based Event on the parent Tween and also invoke the given callback, if provided.

Parameters:

name type arguments description
event Phaser.Types.Tweens.Event

The Event to be dispatched.

callback Phaser.Types.Tweens.TweenCallbackTypes <optional>

The name of the callback to be invoked. Can be null or undefined to skip invocation.

Since: 3.60.0