# AssetsManager load assets

**URL:** <https://forum.babylonjs.com/t/assetsmanager-load-assets/57749>\
**Category:** Questions\
**Created:** [April 10, 2025, 4:51pm UTC](https://forum.babylonjs.com/t/assetsmanager-load-assets/57749 "2025-04-10T16:51:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![KallkaGo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/kallkago/32/45789_2.png) [@KallkaGo](https://forum.babylonjs.com/u/KallkaGo)\
**Post date:** [April 10, 2025, 4:51pm UTC](https://forum.babylonjs.com/t/assetsmanager-load-assets/57749/1 "2025-04-10T16:51:56Z")

</div>

I want to try to create a resource manager in threejs. I consulted the documentation and found AssetsManager, but this resource manager is only responsible for loading resources. When loading a model file, I don’t want it to be added to the scene immediately. Also, how can I use the full URL to load the resource?

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [April 10, 2025, 5:22pm UTC](https://forum.babylonjs.com/t/assetsmanager-load-assets/57749/2 "2025-04-10T17:22:34Z")

</div>

LoadAssetContainerAsync  
See API here - [Babylon.js docs](https://doc.babylonjs.com/typedoc/functions/BABYLON.LoadAssetContainerAsync-1)  
There are methods like `addToScene()`, `addAllToScene()` as well as removing functions.

> [@KallkaGo](#):
>
> how can I use the full URL to load the resource?

The first argument in LoadAssetContainerAsync is the `source` where you put the full URL.

---

<div class="post-metadata">

**Author:** ![KallkaGo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/kallkago/32/45789_2.png) [@KallkaGo](https://forum.babylonjs.com/u/KallkaGo)\
**Post date:** [April 11, 2025, 12:36am UTC](https://forum.babylonjs.com/t/assetsmanager-load-assets/57749/3 "2025-04-11T00:36:58Z")

</div>

I checked the API but it lacks linkage with AssetManager. I need onprogress and onFinish callbacks.

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [April 11, 2025, 12:54am UTC](https://forum.babylonjs.com/t/assetsmanager-load-assets/57749/4 "2025-04-11T00:54:57Z")

</div>

Here is `onProgress` option - [Babylon.js docs](https://doc.babylonjs.com/typedoc/interfaces/BABYLON.LoadAssetContainerOptions#onprogress)  
Since LoadAssetContainerAsync is a Promise, one may check it’s fulfillment instead of old onFinish callback.

---

<div class="post-metadata">

**Author:** ![KallkaGo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/kallkago/32/45789_2.png) [@KallkaGo](https://forum.babylonjs.com/u/KallkaGo)\
**Post date:** [April 11, 2025, 1:10am UTC](https://forum.babylonjs.com/t/assetsmanager-load-assets/57749/5 "2025-04-11T01:10:03Z")

</div>

What I mean is onFinish after all resources are loaded. I checked the documentation and it seems there is no such thing. Maybe I can use Promise.all to achieve it?

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [April 11, 2025, 1:13am UTC](https://forum.babylonjs.com/t/assetsmanager-load-assets/57749/6 "2025-04-11T01:13:07Z")

</div>

> [@KallkaGo](#):
>
> Maybe I can use Promise.all to achieve it

This is the common way which seems reasonable 🙂
