I am writing an editor script for a spine plugin.
And for a certain functionality, I need to get a list of skins available on the object.
Is it possible?
Get the entire collection of skins
- Modifié
If you need a property at a Component, you can use the [SpineSkin]
property drawer just like [SpineAnimation]
:
[SpineSkin]
public string skinName;
If you want to iterate through skins manually, just use
SkeletonData skeletonData; // = skeletonAnimation.Skeleton.Data;
..
ExposedList<Skin> skins = skeletonData.Skins;
foreach (Skin s in skins) {
string skinName = s.Name;
...
}
Thank you, after sitting for a while I found this property))
Sorry for not posting.
Thanks for getting back to us and for your honesty. For the future please always post to the forum if you have discovered any new findings, since this helps other users and obviously saves time answering questions.