Legacy animations

Use the legacy animation override system if you want to use the Animation Unity component. However, we recommend that you use the newer system that's based on the Animator Unity component. For more information, see Animator animations.

Setting up a legacy animation override

The legacy animation override hierarchy must meet the following criteria:

  • Set the IFX root object to have a scale of 1 in all dimensions and zero rotation.

  • Name the root animation game object AnimationComponent.

  • Place the AnimationComponent object at least one level below the IFX root object.

  • Add the EffectLifeRunControl.cs script to the AnimationComponent object.

  • Add an Animation component to the AnimationComponent object.

Assigning animations

  1. Select the AnimationComponent object.

  2. Drag your idle animation from the Project panel to the Animation property of the Animation component in the Inspector panel.

  3. On the Animation component, expand the Animations property.

  4. In the Size property, enter the number of additional animations that you want to use.

  5. Drag each of the additional animations from the Inspector panel to an Element property of the Animations component.

  6. On the Effect Life Run Control component, enter names for the Animation Walk, Animation Run, Animation Idle, and Animation Roar properties that match the name of the animations that you added to the Animation component.

If you don't have an animation for one or more of the states, leave the property empty in the Effect Life Run Control component.

Last updated