Hi,
In my Scene I have imported some meshes using below script.
BABYLON.SceneLoader.ImportMesh('','assets/models/','sample.glb', scene, function (meshes) {
});
It is working fine. Then I have created a sphere using below script
const cylinder = BABYLON.MeshBuilder.CreateCylinder("cylinder", {diameterTop :1,diameterBottom:1,height:5},scene);
let cylinder_material = new BABYLON.PBRMaterial(
"cylinder",
scene
);
cylinder_material.albedoColor = new BABYLON.Color3(1,0,0);
cylinder_material.unlit = true;
cylinder.material = cylinder_material;
cylinder.position = new BABYLON.Vector3(0,2,0);
No error was thrown while doing this. But the cylinder is not visible. If I stopped Importing the meshes. the this cylinder is being visible. If I importing the meshes, the cylinder is not visible. Why this issue? How to solve this.