public bool DoesAnimationExist(string animName) { for (int i = 0; i < _renderer._animationSets.Length; i++) { SpineAnimator childAnimator = _renderer._animationSets[i]._animatior; if (!childAnimator.DoesAnimationExist(GetAnimNameForAnimationSet(_renderer._animationSets[i], animName))) { return(false); } } return(true); }
public string GetAnimNameForAnimationSet(Spine3DAnimationSet animationSet, string animName) { if (!string.IsNullOrEmpty(animationSet._animationPrefix)) { SpineAnimator childAnimator = animationSet._animatior; string fullAnimName = animName + animationSet._animationPrefix; if (childAnimator.DoesAnimationExist(fullAnimName)) { return(fullAnimName); } } return(animName); }