Mystik
November 17, 2020, 3:48pm
1
If I put my model into the GLTF Viewer, I can see my animations with the correct names:
But, if I load the same GLB in my project using AssetLoader with “container” as asset type, my animations are there but rename like this “modelName/animation/X”
Is there a way to get the correct animation names like the GLTF viewer?
yaustar
November 17, 2020, 4:02pm
2
How are you playing the animation? Via animation component?
The names listed in the screen shot are the generated asset names for the animation assets.
yaustar
November 17, 2020, 4:18pm
3
When you have the animation asset, the resource contains the animation track which also contains the track/animation name.
eg
var animationName = containerAsset.resource.animations[0].resource.name;
1 Like
Mystik
November 17, 2020, 4:54pm
4
This is exactly what I was looking for! This is perfect.