I am loading a big scene and want to slowly popin the meshes.
BABYLON.SceneLoader.LoadAssetContainer('./assets/scene/test/', 'Wasteland_Base_Demo.babylon', this.Game.scene, (container) => {
console.log('our import', container);
let max = 0;
container.meshes.forEach(mesh => {
if (max >= 50) {
return;
}
console.log('the mesh', mesh);
// how do i add and load the mesh to my scene independently
mesh.position = new BABYLON.Vector3(0, 0, 0);
mesh.isVisible = true;
max++;
});
});
How do I get the mesh in the container to actually render in my current scene
I will definitely try it out as it looks really cool. However I feel a bit worried as the performance system that loads assets doesn’t allow me to have much say in configuration and if something nuanced doesn’t work as intended, i’d have no control of what to do. Is there a way to do what I am asking without the Incremental loader?