Phaser API Documentation

  Version: 
getTweensOf(target)

Description:

Returns an array of all Tweens in the Tween Manager which affect the given target, or array of targets.

It's possible for this method to return tweens that are about to be removed from the Tween Manager. You should check the state of the returned tween before acting upon it.

Parameters:

name type description
target object | Array.<object>

The target to look for. Provide an array to look for multiple targets.

Returns:
Description:

A new array containing all Tweens which affect the given target(s).

Type:
Since: 3.0.0