- 수정됨
Attaching gameobjects to spine bones
I was wondering what's the best way to attach a gameobject (particles system for example) to a certain bone, and then move them together when spine object plays animations.
Is getting bone coordinates all the time and then updating particles system coordinates to match bone the only way, or there is a better solution?
You can use the BoneFollower script:
- Attach it to an empty game object.
- Drag the skeleton reference into the script.
- Pick a bone to follow.
- Parent your particle system into the game object.
- Optionally parent bone follower game object into the skeleton game object.
Thanks for answering IggyZuk!
You can also have a look at the documentation page if in doubt which component is recommended over another:
spine-unity Runtime Documentation: Utility Components
I see, thanks for answers