Skip to content

unregisterTexture

unregisterTexture(key): void

Defined in: renderer/src/assets.ts:569

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.

string

void

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/renderer.md.