Good morning,
I have several models to load that I add with ImportMesh, ImportMeshAsync, AssetManager… then I use a custom loading screen to display a percentage progress bar (from 0 to 100%)
But I can’t sum up all the different meshes loaded into the promise.
Each mesh displays from 0 to 100%, but suddenly, the progress bar reaches 100% from the first mesh then returns to 0 with the following mesh.
At the end of all operations, the loading screen clears normally. But I would like to make a total of all the meshes to load and only display a progress from 0 to 100% once.
How to do it ?
I have prepared a PG where all that is missing is the calculation of the percentage of all the loaded meshes.
You can see what’s going on in the console.
Thanks for your help