How do I import multiple animations of the single .babylon file?
Currently it is importing single animation when I import a babylon file. But how do I import multiple animations along with the model import?
BABYLON.SceneLoader.ImportMesh("", "LINK TO MODEL", "myModel.babylon", scene, function (newMeshes) {
newMeshes.forEach(mesh => {
mesh.scaling = new BABYLON.Vector3(20, 20, 20);
mesh.position = new BABYLON.Vector3(0, 0.7, 0);
})
scene.createDefaultEnvironment();
scene.createDefaultLight();
});