[SOLVED] "Pause" loading screen


Is there any way how to make playcanvas pausing while loading assets at the beggining in the loadingscreen? Something like app.fire(“preload:pause”);

If you create a custom loading screen then after the application is created, the createLoadingScreen function will be executed before assets are loaded and before app.preload(). Therefore you can take over that process. It’s a bit complicated and there might be much easier ways but this worked for me when I wanted to disable the editor preload setting of assets and write my own preloader to preload exactly the assets that a scene uses. So you may be able to reuse this idea. Here’s the code


This part of your code is what I was looking for. Thank you very much! :slight_smile:

1 Like