mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
The Spine runtime for Unity comes with an example project which has "spineboy" walking. When clicked, he jumps and the transition to/from walking/jumping is blended smoothly. Use the instructions below for your version of Unity.
Unity 4
- Delete the "Assets/examples/Unity 3.5" directory.
- Open the "Assets/examples/Unity 4/spineboy.unity" scene.
Unity 3.5.7
- Delete the "Assets/examples/Unity 4" directory.
- Open the "Assets/examples/Unity 3.5/spineboy.unity" scene.
Unity 3.5.7 stores metadata in the project files, which are not included. References in the project need to be fixed up:
- In the Project, select "examples/Unity 3.5/spineboy/spineboy Atlas".
- In the Inspector, set the material to "spineboy".
- In the Project, select "examplesUnity 3.5/spineboy/spineboy Skeleton Data".
- In the Inspector, set the atlas to "spineboy Atlas".
- In the Hierarchy, select "spineboy".
- In the Inspector, set the skeleton component's skeleton data to "spineboy Skeleton Data".
- In the Inspector, set the missing script to "SpineboyComponent".