我是如下写法:
let skeaniCmp: SkeletalAnimationComponent = this.node.getChildByName(“body”)?.getComponent(SkeletalAnimationComponent)!
skeaniCmp.sockets[0].path=“body/RootNode/Hips/Spine/Spine1/Spine2/RightShoulder/RightArm/RightForeArm/RightHand/Sword_joint”
skeaniCmp.sockets[0].target=this.node.getChildByPath(“weapon”)
用上面代码方法写没有用。。。