clearTextureCache function Assets and loading

void clearTextureCache()

Drops every cached texture, whatever their outstanding claims.

The blunt instrument, for tearing down a whole world at once. Prefer releaseTexture where the caller knows what it loaded. Textures a live scene still references stay resident until those references go.

Implementation

void clearTextureCache() => _textureCache.clear();