unregisterAsset(identifier:completion:)
Deallocates system memory for a given asset and removes it from the engine’s list of registered assets.
Declaration
func unregisterAsset(identifier: String, completion handler: (@Sendable (Bool) -> Void)? = nil)func unregisterAsset(identifier: String) async -> BoolParameters
- identifier:
The unique name that the app defines for the sound asset.
- handler:
Code that the system runs after it unregisters the asset.