Is it possible to get the progress of a loading when using AssetRegistry.loadFromUrl?


In a complex projet, I’m using the pc.AssetRegistry.loadFromUrl to load additonnal content in play mode.

Is it possible to get the progress of the loading by using this technique? I would like to show to users a progress bar in play mode.

Actually, I don’t know how to get the total size of a resource not loaded and how much are actually loaded to get a percentage and create this progress bar.

1 Like

Hi @Mystik,

Right now this isn’t supported by the engine, as far as I know. There is a feature request on the engine repo, try raising some interest there as well:

In the meantime if you are loading several assets what I would do as a less precise indicator is show the number of loaded assets vs the total ones.

1 Like