unity-spine-extensions

A simple wrapper that uses Unity3D's mecanim feature as a representation for state animations when using Spine2D animations.

Pure Nim score 15/100 · last commit 2019-07-04 · 1 stars · tests present · no docs generated

Summary

Latest Version Unknown
License Unknown
CI Status Failing
Stars 1
Forks 0
Open Issues 0
Last Commit 2019-07-04
Downloads 0
Last Indexed 2026-08-12 05:10

Installation

nimble install unity-spine-extensions
choosenim install unity-spine-extensions
git clone https://gitlab.com/raphael.reventar1/unity-spine-extensions

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
unity-spine-extensions - - - - - - -

README

Spine Extensions

sample

Overview

This project contains simple scripts that you can use in your game to integrate spine animations with Unity's mecanim workflow.

How to use

For this example, I'm going to be using SpineBoy from the Spine2D's runtime.

First, go to your spine skeletondata .asset file and create an animation controller.

howtouse1

Attach the desired motions to your animation controller. Add the SpineStateAnimationBehavior component on the states added. Each property in this component has tooltips which describe their purpose. The most important field on this component is the motion field you set, as this will be the animation that will be used to play.

howtouse2

Now you can use the animator parameters to control your spine animations!

I've added another component (SpineEventsListener.cs) which you can use to listen to custom spine events in your animations.

Notes

  • When creating transitions from one state to another, ensure that there is no transition time. Blending is done by spine's runtime, not the mecanim.
  • This method simply uses the mecanim as a visual tool for creating statemachines with your spine animations.

Sample Usage

Example usage can be found in the Spine Extensions/Samples/Character Controller.

Limitations

While this project leverages Unity3D's mecanim, certain features of spine2d's runtime are not supported (e.g. custom blending, animation queueing). This extension is meant for fairly simple animation state machines.