TileSprite#destroy()

destroy(destroyChildren)

Destroys the TileSprite. This removes it from its parent group, destroys the event and animation handlers if present
and nulls its reference to game, freeing it up for garbage collection.

Parameters
Name Type Argument Default Description
destroyChildren boolean <optional>
true

Should every child of this object have its destroy method called?

Source code: gameobjects/TileSprite.js (Line 178)
doc_phaser
2017-02-14 11:17:07
Comments
Leave a Comment

Please login to continue.