Phaser API Documentation

  Version: 

Member of: Phaser.Actions

<static> PlaceOnLine(items, line)

Description:

Positions an array of Game Objects on evenly spaced points of a Line.

Parameters:

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

An array of Game Objects. The contents of this array are updated by this Action.

line Phaser.Geom.Line

The Line to position the Game Objects on.

Returns:
Description:

The array of Game Objects that was passed to this Action.

Type:
Since: 3.0.0
Source: src/actions/PlaceOnLine.js (Line 9)