Skip to main content

Common Issues - Animation

This page is dedicated to common issues surrounding animation. If you are experiencing an issue that does not relate to animation consider looking at one of the other pages in this section, which are also listed here.

Make sure to Update Playable!
A lot of times issues can be fixed by simply updating your plugin to the latest version, please make sure to check you are on the latest release version before looking further into this section. More info on how to do this here

Animation not playing#

This could be due to the Animation being unable to find the correct child / parent transforms if the Animator is on the wrong game object. Unity automatically rebinds animations for you if they are missing, so it will not appear as an error within Unity.

Possible solution:

  • Check in the Unity Animation window for any yellow text saying ‘Missing!’ (example of this warning below).
    If so, move the Animator component to the correct game object.
    For example, if the Animation contains keyframes for a transform called LeftArm and expects that transform to be an immediate child, then move the Animator component so that LeftArm is an immediate child.

    images-small

Animation does not loop#

This is likely happening due to animation looping not being supported when using the Animation component.

Possible solution:

  • Use the Animator component instead and place the animation inside the Mecanim system. From there the Loop Time box can be checked to make the animation loop.
    From there the Loop Time box can be checked to make the animation loop. (Shown below)

    images-small

Character stuck in T-pose#

This is likely happening due to Humanoid animations not being supported in Luna at the moment. Check if your animation type is indeed set as Humanoid by looking at the imported model asset's import settings under the Rig tab. (Example of this below)

Alternatively this could be due to an Avatar controller being used for the animation, as this is not supported in Luna.

Possible solution:

  • Avatar / Humanoid animations need to be baked to generic animations, full steps on doing so can be found here.

    images-medium

Functions called from an Animation event do not fire if the function is labelled as private#

This is likely due to a known issue in our engine.

Possible solution:

  • Mark functions as public instead

    images-large

Animation is jumping / jittering during transition between keyframes#

Possible solution:

  • Disable 'Write Defaults' in the animation

    images-medium

Animation transitions aren’t happening at the triggered time / triggered late#

This could be due to the AnyState animation node not blending the animations correctly. Or alternatively it could have be due to an overlap between the animation, Unity handles it differently than Luna.

Possible solution:

  • Remove the AnyState animation node and instead directly transition your animations.
  • Remove the overlap between them by dragging, making the gab as small as possible.

    images-medium

Cannot add key to an AnimationCurve using AnimationCurve.AddKey()#

You can find out all you need to know on this here.

Animations not same height after using the Animation Baker plugin#

Sometimes whilst using the Animation Baker plugin the height is not taken into account.

Possible solution:

  • Manually change the height of the object inside the animation.

    images-medium

Animations in Luna do not get interrupted immediately / Animator.SetBool() isn’t working correctly#

For example, in unity, when a character is shot, the idle animation gets interrupted to play the shot animation, which is the intended purpose. In Luna the animation does not interrupt and instead it carries on until it is finished.

This likely due to a known bug within the Luna Animator component.

Possible solution:

  • Instead of calling: enemyAnimator.SetBool(IsHit, true);
    Instead try: enemyAnimator.Play("hit");

    images-large

Animation Events not triggering on Legacy Animations#

Possible solution:

  • Convert your Animations from Legacy and apply them to an Animator. This will allow the Events to trigger.

    images-large

Animations deforms mesh in Luna#

Possible solution:

  • Disable the “write default” options in the animation.