Phaser API Documentation

  Version: 

Member of: Phaser.Tweens.Tween

dispatchEvent(event, [callback])

Description:

Internal method that will emit a Tween based Event and invoke the given callback.

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