Skip to content

Commit 1ef617c

Browse files
committed
Updated Tilemap.destroy documentation to clarify layer removal (issue phaserjs#740)
1 parent 3a86d3c commit 1ef617c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/tilemap/Tilemap.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1580,7 +1580,8 @@ Phaser.Tilemap.prototype = {
15801580
},
15811581

15821582
/**
1583-
* Removes all layers from this tile map and nulls the game reference.
1583+
* Removes all layer data from this tile map and nulls the game reference.
1584+
* Note: You are responsible for destroying any TilemapLayer objects you generated yourself, as Tilemap doesn't keep a reference to them.
15841585
*
15851586
* @method Phaser.Tilemap#destroy
15861587
*/

0 commit comments

Comments
 (0)