Phaser API Documentation

  Version: 
destroy([removeFromTilemap])

Description:

Destroys this TilemapLayer and removes its link to the associated LayerData.

Parameters:

name type arguments Default description
removeFromTilemap boolean <optional> true

Remove this layer from the parent Tilemap?

Since: 3.50.0