Class: ObjectLayer

Phaser.Tilemaps. ObjectLayer

A class for representing a Tiled object layer in a map. This mirrors the structure of a Tiled
object layer, except:

  • "x" & "y" properties are ignored since these cannot be changed in Tiled.
  • "offsetx" & "offsety" are applied to the individual object coordinates directly, so they
    are ignored as well.
  • "draworder" is ignored.

new ObjectLayer( [config])

Parameters:
Name Type Argument Description
config object <optional>

[description]

Since: 3.0.0
Source: src/tilemaps/mapdata/ObjectLayer.js (Line 10)

Members


name :string

[description]

Type:
  • string
Since: 3.0.0
Source: src/tilemaps/mapdata/ObjectLayer.js (Line 34)

objects :Array.<Phaser.GameObjects.GameObject>

[description]

Type:
Since: 3.0.0
Source: src/tilemaps/mapdata/ObjectLayer.js (Line 88)

opacity :number

[description]

Type:
  • number
Since: 3.0.0
Source: src/tilemaps/mapdata/ObjectLayer.js (Line 43)

properties :object

[description]

Type:
  • object
Since: 3.0.0
Source: src/tilemaps/mapdata/ObjectLayer.js (Line 52)

propertyTypes :object

[description]

Type:
  • object
Since: 3.0.0
Source: src/tilemaps/mapdata/ObjectLayer.js (Line 61)

type :string

[description]

Type:
  • string
Since: 3.0.0
Source: src/tilemaps/mapdata/ObjectLayer.js (Line 70)

visible :boolean

[description]

Type:
  • boolean
Since: 3.0.0
Source: src/tilemaps/mapdata/ObjectLayer.js (Line 79)