Hi all,
I am trying to import meshes using SceneLoader.ImportMesh
method, however, when I try to access all meshes using scenes.meshes
, the only one that appears is ground, despite me being able to see the objects in the scene. After reading documentation on SceneLoader I thought ImportMesh function imports meshes in the scene, so why am I not able to see them in scenes.meshes array?
var loadMeshes = function(name, filename, x) {
BABYLON.SceneLoader.ImportMesh('', "path", filename, scene, function (meshes) {
var mesh = meshes[0];
mesh.position = new BABYLON.Vector3(x, 5, 5) ;
mesh.name = name;
})
}