I don't know why the unload method was empty but now it clears all cached files when calling Assets.unloadLibrary("");
This commit is contained in:
@@ -611,7 +611,13 @@ class AssetLibrary
|
||||
}
|
||||
}
|
||||
|
||||
public function unload():Void {}
|
||||
public function unload():Void {
|
||||
cachedBytes.clear();
|
||||
cachedFonts.clear();
|
||||
cachedImages.clear();
|
||||
cachedAudioBuffers.clear();
|
||||
cachedText.clear();
|
||||
}
|
||||
|
||||
@:noCompletion private function __assetLoaded(id:String):Void
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user