timucinemresen

  • 2 июн 2024
  • Регистрация: 19 авг 2023

    To enable the new Root Motion feature in Spine, you need to follow these steps:

    1. Download the Latest spine-unity Package: Ensure you have the latest version of the spine-unity package. You can download it from Spine Unity Download.

    2. Add the SkeletonRootMotion Component: Attach the SkeletonRootMotion component to your skeleton GameObject in Unity. This component is responsible for handling root motion.

    3. Configure the Component:

      • Root Motion Bone: Set the target bone whose movement will be used as root motion.
      • X and Y: Enable movement along the local X and Y axes as needed.
      • Root Motion Scale (X and Y): Adjust the scale for horizontal and vertical root motion delta to compensate for any required adjustments.
      • Animation Tracks: Specify which animation tracks should be included in root motion calculations.

    For detailed instructions, you can refer to the spine-unity Runtime Documentation: SkeletonRootMotion.

    Here is a visual representation of the SkeletonRootMotion component parameters:
    SkeletonRootMotion Component

    By following these steps, you should be able to activate and configure the root motion feature as described in the blog.