My character is holding a gun, all i would like to do is change the image of the gun during runtime of my game.
I have looked through the forums and am very confused about how to accomplish this. Do I need to use skins, multiple slots, or attachments? I currently have my different gun images under a "gun" slot, but am not sure if this is the correct way to have it set up. I am using Unity with C#, what would be the syntax to change the image of my gun slot?
thanks
Has anyone around here used Spine with Unity and wanted to change out a bones image during runtime? I'm stuck and really would appreciate some help.
I finally figured out how to accomplish this by looking at the goblin example, I didn't realize these examples came with spine.
You can change a skeletons attachment by doing the following:
SkeletonAnimation.skeleton.SetAttachment("slotName","attachmentName");
Hopefully this can help someone else. The issue now though is it seems that my running animation of my character changes the slots attachment back to the basic setup pose attachment.... anyone know how to override an attachment permenantly until I tell it to change?