I’m glad to announce that we finally have an option to load a model and duplicate it as much as you want without reloading it!!!

To do so, you have to load it into an AssetContainer and then use the new instantiateModelsToScene function:

BABYLON.SceneLoader.LoadAssetContainer("", "alien.glb", scene, function (container) {

Demo: Babylon.js Playground

Documentation: Use an AssetContainer - Babylon.js Documentation


Excelent!!! Well done :muscle::muscle::muscle:
We have wanted this feature for a long long time.

2 observations :yum:

  1. Can we have the name as param of function like in clone? Because now all the clones will have the same name.
  2. And a flag for clone material or not? :slight_smile:

If it is not possible by design I understand. Cheers! :beers:

  1. Sure will add that now!
  2. Good idea! will do
1 Like

Will be in next nightly :slight_smile:

You are amazing!:beers:

1 Like