MAnimalAnimatorSync
Last updated
Last updated
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.
Reference for the Master Animator to get the parameters values
Slave Animator to receive the parameter values
Which Layer Index will be used to sync to the Slave Animator
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 to check if the slave animator is unsync
Which State will be synced again
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.
Offset the position relative to the Master Animator
Offset the rotation relative to the Master Animator