Cache#removeSound()

removeSound(key)

Removes a sound from the cache.

If any Phaser.Sound objects use the audio file in the cache that you remove with this method, they will
automatically destroy themselves. If you wish to have full control over when Sounds are destroyed then
you must finish your house-keeping and destroy them all yourself first, before calling this method.

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 Description
key string

Key of the asset you want to remove.

Source code: loader/Cache.js (Line 1683)
doc_phaser
2017-02-14 10:40:31
Comments
Leave a Comment

Please login to continue.