What’s the correct way of playing all model animations with loop?
I’m currently doing it as:
entity.addComponent("animation", {
assets: pc.app.assets.find('somemodel').resource.animations,
loop: true
});
and it seems only to play first animation in animations array
Hi @Newbie_Coder,
You can only have a single animation playing at any instant, unless you use the newer anim component and blend layers (usually used for playing 2 animations e.g. upper body vs lower body).
(the animation component you are using here has been deprecated).
Maybe you are asking something different, play each animation one after the other?
![Capture](//forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/3X/5/9/599911bb6b1a663d5a2a486663337a4b9680e154.png)
Model has two bone structures
Each animation animates different part of the model
I think you need to either use the anim component with two different layers.
Or merge the two animations and create a single one that affects all bones.