Phaser API Documentation

  Version: 
getObjectLayer([name])

Description:

Gets the ObjectLayer from this.objects that has the given name, or null if no ObjectLayer is found with that name.

Parameters:

name type arguments description
name string <optional>

The name of the object layer from Tiled.

Returns:
Description:

The corresponding ObjectLayer within this.objects, or null.

Since: 3.0.0
Source: src/tilemaps/Tilemap.js (Line 1204)