Phaser API Documentation

  Version: 

Member of: Phaser.Actions

<static> GridAlign(items, options)

Description:

Takes an array of Game Objects, or any objects that have public x and y properties, and then aligns them based on the grid configuration given to this action.

Parameters:

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

The array of items to be updated by this action.

options Phaser.Types.Actions.GridAlignConfig

The GridAlign Configuration object.

Returns:
Description:

The array of objects that were passed to this Action.

Type:
Since: 3.0.0
Source: src/actions/GridAlign.js (Line 15)