• Unity
  • Color Slots

I want to color multiple slots at the same time, since there is no way to create tags or slots groups inside spine, someone tells me to rename the slots I want to group like "c1-front" "c1-back" etc...
But now inside Unity, how can I search for all slots that start with "c1"?
Since findslot works only with the exactly slot name like "c1-front"

Related Discussions
...

You can access skeleton.Slots to check for certain names:

var skeletonAnimation = this.GetComponent<SkeletonAnimation>();
var slots = skeletonAnimation.Skeleton.Slots.Items;
for (int i = 0; i < slots.Length; ++i) {
   var slot = slots[i];
   string name = slot.data.Name;
   ...
}

It work perfectly, thanks!