Creating new animations for a Spine skeleton directly inside Unity is not straightforward. While you can write code to generate a Spine animation, it is generally more efficient to use Spine's dedicated tools for animation. Unity's native tools can be used for non-Spine animations, but the user experience may not be as smooth as using Spine itself.
For evaluating Spine animations in Unity, you can download the spine-unity runtime, which includes various examples and documentation to help you get started:
Additionally, you can look at the example Unity project provided in the spine-unity runtime, such as the Spineboy.cs
file, which can guide you in the right direction for integrating Spine animations into your Unity project:
For more advanced needs, you might consider using Unity's Mecanim system with Spine animations, although this requires some setup:
If you need to bake Spine animations into Unity prefabs, the spine-unity runtime also offers skeleton baking functionality:
For more detailed information and examples, you can refer to the spine-unity runtime documentation and the provided example projects.