Hello forum!
First, thanks to playcanvas! I got many fun when using this engine.
Here is my problem.
I’m using downloaded human animations for my character. So I have to change my bone name using scripts below. It works fine.
for (var ele of boneNamesList) {
var bone = this.entity.findByName(ele[0]);
if (bone != null) {
bone.name = ele[1];
}
}
But when I want to use AnimLayermask to blend gun shooting animation to upper body. It went crazy. I cant just EDIT MASK of the layer for the bone name will change runtime. So I try to set this.entity.anim.layers[1].mask
runtime. But it won’t work both when I change the path name to the new bone name or I change the path name to the original bone name. Any ideas?
Any help or advice would be appreciated