SceneLoader.LoadAsync: Maximum call stack size exceeded

https://playground.babylonjs.com/#WGZLGJ#4028

you are trying to add a mesh to the scene which is already in the scene and you are also using 2 scenes in the playground,

I reorganized a bit the code here:
https://playground.babylonjs.com/#ZPY65X

2 Likes

I want to add the imported mesh to the current scene or mesh child.

1 Like

Hey there, you can use ImportMesh to do this, like below. :slight_smile:

1 Like

This will be added to the scene immediately.I want to store it in the root mesh first,then render it.
https://playground.babylonjs.com/#WGZLGJ#4030

1 Like

Ah, I get what you’re after now - it looks like you’ve already found a way, but you can also do it by simply calling assetContainer.instantiateModelsToScene() :beers:
https://playground.babylonjs.com/#WGZLGJ#4034

Here’s the relevant documentation section for doing it this way. :slight_smile:

1 Like

Thanks,i get it

1 Like