Phaser API Documentation

  Version: 

Member of: Phaser.Actions

<static> Call(items, callback, context)

Description:

Takes an array of objects and passes each of them to the given callback.

Parameters:

name type description
items array | Array.<Phaser.GameObjects.GameObject>

The array of items to be updated by this action.

callback Phaser.Types.Actions.CallCallback

The callback to be invoked. It will be passed just one argument: the item from the array.

context *

The scope in which the callback will be invoked.

Returns:
Description:

The array of objects that was passed to this Action.

Type:
Examples:
Since: 3.0.0
Source: src/actions/Call.js (Line 7)