• Runtimes
  • How to bind one skeleton to a bone in an other skeleton?

  • Изменено
Related Discussions
...

For example I have a character with a weapon. how to bind weapon skeleton to character bone which named "left hand" or "right hand". I don't find any API about this.

Skeleton attachments are not yet implemented. However, depending on the runtime, there are various ways to let one object follow a bone.

If you are using the Unity runtime, you can use a BoneFollower to have a GameObject track the bone location, and then you can set your weapon skeleton GameObject as child of this BoneFollower object.

Harald написал

Skeleton attachments are not yet implemented. However, depending on the runtime, there are various ways to let one object follow a bone.

If you are using the Unity runtime, you can use a BoneFollower to have a GameObject track the bone location, and then you can set your weapon skeleton GameObject as child of this BoneFollower object.

Does cocos or cocosCreator have same function?

In all runtimes you can get the world position of a bone and position other things at that position (which is all the BoneFollower in spine-unity is doing).