Why is the gltf exported from 3DMax loaded as an instance?

Is there any option for me to choose whether the loaded gltf is an instance or a regular mesh? Because in many cases, I need to change the mesh material.

I haven’t updated the version for a long time. I used to want version 4.2. This issue occurs during the upgrade now.

cc @bghgary

Yes, you can set createInstances to false on the loader.

https://doc.babylonjs.com/typedoc/classes/BABYLON.GLTFFileLoader#createInstances

Can it be selectively configured? I hope to control which gltfs use instance loading and which ones are not used?
Also, I couldn’t find the createInstances property in GLTFFileLoader. How should I set it? I am using version 6.49.
And use SceneLoader LoadAssetContainer loading method.
1714443365631

I added this code and it solved the problem. Thank you for your support
image

2 Likes