Simple Animation Component
For more complex scenarios use an animation graph instead.
AnimationClip: The animation clip to play.
AnimationMode: How to play the animation:
Once: The animation is played exactly once and then stops.
Loop: The animation is played in an endless loop.
BackAndForth: The animation is played to its end, then it reverses and plays back to the start. Then the cycle repeats.
Speed: The playback speed. A speed of zero pauses playback. A negative speed makes the animation play backwards. The speed can be changed at any time.
RootMotionMode: Selects how root motion is applied to the owning game object.
InvisibleUpdateRate: How often to update the animation when the object is not visible. For performance reasons the update rate should be very low or even paused when an object isn't visible. However, since animations may have an important impact on gameplay, it can be undesirable to have a lower update rate even when the object is not visible. Note that this affects the update rate of objects that are not visible by the main camera, but by a shadow casting light. Objects whose shadow can be seen generally get updated, but at a low rate, unless this setting forces a higher update rate.
The component will broadcast the event
ezMsgGenericEvent every time it encounters an animation event in the animation clip. Custom code can listen for these events and trigger relevant game mechanics.