🔧Character Animation
In this section you will learn how to set up your animations
Last updated
In this section you will learn how to set up your animations
Last updated
Specify the Generic or Humanoid rig. Bake the rotation and translation into the pose and specify the right avatar for your character.
Create a copy of your animation clip - we will need to make changes to it:
Now we need to copy the animation data from the skeleton IK bone to the WeaponBone object.
Open up the Transform Retarget tool:
Select your animation as a Source and Target animation clip - that’s because we want to copy the animation data within one animation.
Now add your in-game and IK Rig characters to the scene:
Now assign the transforms as follows:
After that you shoulf see keyframes for the WeaponBone in your animation:
Unity won’t allow you to select a custom object like WeaponBone, because it’s not a part of the bone hierarchy.
For this go to the FPS Animator/Rig tab/Select your upper body avatar mask and click “Setup Avatar Mask”. Now your mask should have an extra property:
At this point the animation setup is complete. Create an AnimSequence for your animation and add it to the weapon, check if there’re any issues in the game.