..
2013-05-10 19:46:09 +07:00
2013-05-10 19:46:09 +07:00
2013-05-10 19:46:09 +07:00
2014-05-17 21:53:01 +02:00
2013-05-26 22:13:41 +02:00

spine-tk2d

The spine-tk2d runtime provides functionality to load, manipulate and render Spine skeletal animation data using 2D Toolkit for Unity. spine-tk2d is based on spine-csharp and is very similar to spine-unity.

A Spine skeleton is a GameObject and can be used throughout Unity like any other GameObject. The BoneComponent class allows other GameObjects to follow a bone in a Spine skeleton.

Setup

  1. Download the Spine Runtimes source using git or by downloading it as a zip.
  2. Copy the contents of spine-csharp/src to spine-tk2d/Assets/spine-csharp.
  3. Open the spine-tk2d/Assets/examples/spineboy/spineboy.unity scene file using Unity 4.3.4+.
  4. Import 2D Toolkit into the example project.

To use spine-tk2d in your own Unity project:

  1. Copy the contents of spine-csharp/src to Assets/spine-csharp in your project.
  2. Copy the spine-tk2d/Assets/spine-tk2d to Assets/spine-tk2d in your project.
  3. Import 2D Toolkit into your project.

Examples

  • spineboy This shows the spineboy skeleton with shadows. First an animation is played that shows the draw order changing and events firing, then spineboy jumps and walks. Click spineboy to jump again. Notice the walk and jump animations are mixed and transition smoothly. The white cube on spineboy's right hand is a separate GameObject that is positioned using a BoneComponent.

Notes

  • Atlas images should use premultiplied alpha when using the shaders that come with spine-tk2d.
  • This slightly outdated spine-tk2d setup video may still be useful.