I'm using this code to select a sprite and a spine attachment:
[Serializable]
public struct CustomizationSlotSetting {
[PreviewField]
[LabelText("")]
public Sprite sprite;
[SpineAttachment(skinField:"Front")]
[LabelText("")]
public string spineAttachment;
}
In my spine file, i have two skins "Front" and "Side". I actually only use the front skin.
But when I use the code above, i get to choose from Null, Default, Front, Side. Did I miss any parameter?
I also tried currentSkinOnly=true, but no difference.
I'm using the IHasSkeletonDataAsset to get the skeletondata with this code:
public SkeletonDataAsset skeletonDataAsset;
public SkeletonDataAsset SkeletonDataAsset {
get { return skeletonDataAsset; }
}
Any ideas? 🙂