removeImage(key, destroyBaseTexture)
Removes an image from the cache.
You can optionally elect to destroy it as well. This calls BaseTexture.destroy on it.
Note that this only removes it from the Phaser Cache. If you still have references to the data elsewhere
then it will persist in memory.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
key | string | Key of the asset you want to remove. | ||
destroyBaseTexture | boolean | <optional> | true | Should the BaseTexture behind this image also be destroyed? |
- Source code: loader/Cache.js (Line 1656)
Please login to continue.