- Home /
AttachUnitySprite not available - Spine Unity
Hello,
I started to use Spine with Unity now, and I was trying to attach a weapon on my character's hand. I was following this tutorial: Spine Unity Sprite Attachments
When he is creating the Attacher Script, he use skeletonRenderer.skeleton.AttachUnitySprite(slot, sprite);
I tried to do it, but on my Unity (2017.1) only appears SetAttachment and GetAttachment. I'm doing something wrong, or there's a new way to do this Weapon Attachment?
Thank you!
Answer by vovkas · Dec 22, 2018 at 12:48 PM
Hi. Add and setup component SpriteAttacher at Inspector.
Then use this code:
mySpriteAttacher.sprite = ball.View.sprite;
mySpriteAttacher.Initialize();
mySpriteAttacher.Attach();
Your answer
Follow this Question
Related Questions
2d Animation sprites - right way? 0 Answers
2D animations - same controller for different characters 4 Answers
How to optimize 2D Animations created with 2D Animation packege? (v3.1.1) 0 Answers
Is there a way to optimize animators? 3 Answers
2D Sprite animation, while rotating in isometric view? 1 Answer