Legacy animations
Last updated
Last updated
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.
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.
Select the AnimationComponent
object.
Drag your idle animation from the Project panel to the Animation property of the Animation component in the Inspector panel.
On the Animation component, expand the Animations property.
In the Size property, enter the number of additional animations that you want to use.
Drag each of the additional animations from the Inspector panel to an Element property of the Animations component.
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.