removeByKey(key) → {number}
Removes all Sounds from the SoundManager that have an asset key matching the given value.
The removed Sounds are destroyed before removal.
Parameters
Name | Type | Description |
---|---|---|
key | string | The key to match when removing sound objects. |
Returns
number -
The number of matching sound objects that were removed.
- Source code: sound/SoundManager.js (Line 604)
Please login to continue.