Free every asset the loader holds, whoever holds it: the caches, the audio
clips, and what the engine made from them (GPU textures, shader programs,
fonts in document.fonts).
Bundles declared with loader.setBundle stay declared, all of them
back to not loaded, so they can be loaded again by id. Base URLs, options
and parsers are kept too. Levels stay registered with the level director:
load the bundles (or preload the assets) again before loading one.
Returns void
Example
// back to the title screen: drop everything, then load what it needs loader.unloadAll(); awaitloader.load("common");
Free every asset the loader holds, whoever holds it: the caches, the audio clips, and what the engine made from them (GPU textures, shader programs, fonts in
document.fonts).Bundles declared with loader.setBundle stay declared, all of them back to not loaded, so they can be loaded again by id. Base URLs, options and parsers are kept too. Levels stay registered with the level director: load the bundles (or preload the assets) again before loading one.