Quantcast
Channel: Answers for "How to check if a specific animation is playing within mecanim"
Browsing latest articles
Browse All 4 View Live

Answer by darthbator

It's a little different then it was before (stuff like blend states can really complicate "what is now playing"). You'll want to use this [function][1] to get the [aimator state info][2]. From there...

View Article



Answer by tyoc213

Animator some = gameObject.GetComponentInChildren (); AnimationInfo[] ainfo = some.GetCurrentAnimationClipState(0); if(ainfo.Length == 0){ /*** no animation running***/ }else{ for(int idx=0;idx

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images