You can use AC.KickStarter.player.GetAnimator () to get a reference to the Player's Animator, but actually retrieving the name of the animation itself involves Unity's own Animator API.
Actually checking the current animation can be a bit tricky, because it's possible for multiple animations to be playing at once - even on the same layer.
Some suggestions can be found on Unity forums, see here for example:
Comments
The Character: Animate Action can be used to return a character to idle, but that depends on their chosen animation engine.
What animation engine does your character rely on, and in what way are they being animated that needs them to be reset?
Hi Chirs,
Apologies, i meant Is there a method to check which animation is currently playing?
m
AC.KickStarter.player.GetAnimator ().GetAnimation??????
Something like this
You can use AC.KickStarter.player.GetAnimator () to get a reference to the Player's Animator, but actually retrieving the name of the animation itself involves Unity's own Animator API.
Actually checking the current animation can be a bit tricky, because it's possible for multiple animations to be playing at once - even on the same layer.
Some suggestions can be found on Unity forums, see here for example:
https://answers.unity.com/questions/1206196/retrieve-the-animation-clip-that-animator-is-playi.html
ok thanks Chris