MAnimalAnimatorSync

Overview

The MAnimal Animator sync what it does is to sync 2 animators (One master and one Slave).

It reads from the Master Animal Controller every time an Animator Parameter has changed and updates the values on the Slave Animator. The Master Animator needs to have a component that uses the IMAnimator and IAnimatorStateCycle interfaces. (The Animal component has it)

This is useful when you have props like wings in your character, and you need specific animations to be played when the character Jump, Fall, walks, etc.

Parameters

Master Animator

Reference for the Master Animator to get the parameters values

Slave Animator

Slave Animator to receive the parameter values

Layer

Which Layer Index will be used to sync to the Slave Animator

Resynchronize

When the Animator is playing a blendtree or a loopable animation. it will check if both Animator times are in sync. If not it will force a synchronization. This is needed for Float Animator Values.

Threshold

Threshold to check if the slave animator is unsync

StateCheck

Which State will be synced again

Use Transform Offset

Enables the Offset position and rotation from the Master Animator. Since the Slave animator can have rootmotion this will re-position the gameobject on the correct position.

PosOffset

Offset the position relative to the Master Animator

RotOffset

Offset the rotation relative to the Master Animator

Last updated

Was this helpful?