Yes, this is exactly the expected behavior. The .babylon file you are loading has Light
s in it. When you use ImportMeshAsync
, you are import meshes only. Everything else in the file is ignored. When you use LoadAssetContainerAsync
, you are bringing in everything from the file, and if you call addToScene
with no arguments, you are adding everything to the scene (including lights). If you added only meshes (e.g. result2.addToScene(entity => entity instanceof BABYLON.AbstractMesh)
) then the behavior is exactly the same as ImportMeshAsync
. This is why we felt like LoadAssetContainerAsync
is probably a superset of the functionality of ImportMeshAsync
.
I think you are saying the error is because your code converts the url to lower case, but if I’m misunderstanding and you think there is a Babylon bug, let me know!