engine icon indicating copy to clipboard operation
engine copied to clipboard

If all assets are already loaded and AssetListLoader is used to load the assets, the done callback is not called

Open yaustar opened this issue 2 years ago • 0 comments

Project: https://playcanvas.com/project/966580/overview/asset-list-all-loader-bug Expectation: 'Done' to be printed in console

Workaround, use the ready function to set a callback.

Looks like in the load function, we just need to call _loadingComplete where we fire the load event here:

https://github.com/playcanvas/engine/blob/main/src/asset/asset-list-loader.js#L130

yaustar avatar Aug 05 '22 11:08 yaustar