Hey,
I can’t seem to make the animation play on a runtime imported glb model.
Here is the project:
https://playcanvas.com/project/871331/overview/gambit
I’m using the following code to load the model and play the animation:
var self = this;
utils.loadGlbContainerFromAsset(this.glbAsset, null, this.glbAsset.name, function (err, asset) {
var renderRootEntity = asset.resource.instantiateRenderEntity();
self.entity.addChild(renderRootEntity);
self.entity.animation.assets = asset.resource.animations;
if(self.entity.animation.assets.length > 1)
self.entity.animation.play(self.glbAsset.name + " 0");
else
self.entity.animation.play(self.glbAsset.name);
});
It plays correctly in the playcanvas gltf viewer.
Hope someone can help me identify the problem.