Hi, my skeleton has item in hand by default I would like to disable it without copying and modifying SkeletonDataAsset.
The only solution I found is this, but I'm not sure how correct it is, seems hacky. Should I use it or there are "better/safer" ways to do that:
private Attachment _attachment;
[Button]
public void EnableSlot()
{
var slot = _skeletonAnimation.Skeleton.FindSlot(_slotName);
if (_attachment != null)
slot.Attachment = _attachment;
}
[Button]
public void DisableSlot()
{
var slot = _skeletonAnimation.Skeleton.FindSlot(_slotName);
if (slot.Attachment != null)
_attachment = slot.Attachment;
slot.Attachment = null;
}