Forum rules - please read before posting.

Animation state check?

Hi Chris/Forum

Sorry to bother but i'm wondering if these is an action to return the players animation state?

Regards
Martyn

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

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.