Added AssetManager#unloadAll(AssetDesc[]) to help with batch unloading

This commit is contained in:
Collin Smith
2023-08-06 00:12:55 -07:00
parent 5b5d63f338
commit 1ac688586f

View File

@ -240,6 +240,12 @@ public final class AssetManager implements Disposable {
}
}
public void unloadAll(AssetDesc[] assets) {
for (AssetDesc asset : assets) {
if (asset != null) unload(asset);
}
}
public void sync(final long timeoutMillis) {
log.debug("Syncing...");
SyncMessage msg;