Hello Mitch, i can see in
https://youtu.be/GH6FPr76lU0
Spine Unity SpriteAttacher video in the Footsoldier example that the sprite PNG file "Equipment", can be attach easy and does not create problems, (for example: artifacts...).
Which graphic software used to create the file "Equipment" and export it to Spine?
Can you link some access to the editable file to see the Alpha export options to Spine?
I export the necessary pngs directly from photoshop to Unity in a folder. I use Spine only for skeletons.
I have long been trying how to export my png Sprites to my skeletons via code but still gives me the problem of artifacts and look bad but with the "Equipment" file work fine.
public class load_slot_scr : MonoBehaviour {
//slots
public Sprite sprite;
[SpineSlot]
public string slot;
SkeletonRenderer skeletonRenderer;
// Use this for initialization
void Start () {
//slots
slot="slot_weapon";
skeletonRenderer = GetComponent<SkeletonRenderer>();
var AttachS = skeletonRenderer.skeleton.AttachUnitySprite(slot, sprite);
}
void OnGUI(){
//Button for load sprite
if(GUI.Button(new Rect(250,250,100,100),"Load Sprite")){
sprite = Resources.Load<Sprite>("Resources/Sistema/Maniquis/Sprites/sword");
skeletonRenderer = GetComponent<SkeletonRenderer>();
var AttachS = skeletonRenderer.skeleton.AttachUnitySprite(slot, sprite);
};
}
}
Sorry for my poor english. :sweat: