unregisterTexture
unregisterTexture(
key):void
Defined in: renderer/src/assets.ts:516
Remove a texture registered by registerTexture. A no-op for keys
this API never registered. Never destroys the texture — the creator owns
the GPU resource; call texture.destroy() once nothing draws it anymore.
Only evicts the cache entry while it still holds the registered texture: if an asset preloaded under the same key overwrote it after registration, that entry belongs to the asset pipeline and is left in place.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void