Phaser API Documentation

  Version: 
<static> GetTargets(config)

Description:

Extracts an array of targets from a Tween configuration object.

The targets will be looked for in a targets property. If it's a function, its return value will be used as the result.

Parameters:

name type description
config object

The configuration object to use.

Returns:
Description:

An array of targets (may contain only one element), or null if no targets were specified.

Type:
  • array
Examples:
Since: 3.0.0