We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 532715d commit 6312325Copy full SHA for 6312325
1 file changed
src/gameobjects/tilemap/Tilemap.js
@@ -214,6 +214,8 @@ var Tilemap = new Class({
214
* Turns the StaticTilemapLayer associated with the given layer into a DynamicTilemapLayer. If
215
* no layer specified, the map's current layer is used. This is useful if you want to manipulate
216
* a map at the start of a scene, but then make it non-manipulable and optimize it for speed.
217
+ * Note: the DynamicTilemapLayer passed in is destroyed, so make sure to store the value
218
+ * returned from this method if you want to manipulate the new StaticTilemapLayer.
219
*
220
* @param {string|integer|DynamicTilemapLayer} [layer] - The name of the layer from Tiled, the
221
* index of the layer in the map, or a StaticTilemapLayer.
0 commit comments