Phaser API Documentation

name type arguments Default description
name string <optional> 'object layer'

The name of the Object Layer.

opacity number <optional> 1

The opacity of the layer, between 0 and 1.

properties any <optional>

The custom properties defined on the Object Layer, keyed by their name.

propertytypes any <optional>

The type of each custom property defined on the Object Layer, keyed by its name.

type string <optional> 'objectgroup'

The type of the layer, which should be objectgroup.

visible boolean <optional> true

Whether the layer is shown (true) or hidden (false).

objects Array.<any> <optional>

An array of all objects on this Object Layer.

Since: 3.0.0