Bones and mesh sync in 2 different ways

Hi everyone :slight_smile:

I made a test like thishttps://playground.babylonjs.com/#L3AP8P

I wonder what the difference is between the two methods.
(ImportMeshAsync().then() vs Append or await ImportMeshAsync())

If I have to use the latter approach, how can I synchronize the bones with meshes?

Thanks in advance.

SceneLoader.Append returns the scene in the callback function, not the same object returned by ImportMesh. So, result.meshes[2] does not return the body of the vanguard but the root node instead.

You can do something like this to operate on the right data in the “Append” case:

2 Likes

It was simpler than I thought, but I don’t know why I missed it.
I’ve been thinking about it since it hasn’t been resolved :rofl:
Thank you so much!