Phaser API Documentation

  Version: 
<static> CreateGroupLayer(json, [group], [parentState])

Description:

Parse a Tiled group layer and create a state object for inheriting.

Parameters:

name type arguments description
json object

The Tiled JSON object.

group object <optional>

The current group layer from the Tiled JSON file.

parentState object <optional>

The state of the parent group (if any).

Returns:
Description:

A group state object with proper values for updating children layers.

Type:
  • object
Since: 3.21.0