Importing Spine assets into Unity

Tutorial

·

intermediate

·

+10XP

·

20 mins

·

(140)

Unity Technologies

Importing Spine assets into Unity

Importing Spine assets into Unity is a simple and straightforward process. In this tutorial, we'll learn how to import Spine assets into Unity.

Languages available:

1. Importing Spine Assets into Unity

This tutorial has been verified using Unity 2019 LTS


Importing Spine assets into Unity is a simple and straightforward process. By this point, you should already have a functioning Spine-Unity runtime installed in your Unity Editor.


Refer to the Spine guide for help with this: http://en.esotericsoftware.com/spine-unity-download#Installing-spine-unity-in-a-new-project


1. Make sure your Unity project and the destination project folder is open (Figure 01).


Figure 01: Unity and File Explorer containing your assets

Figure 01: Unity and File Explorer containing your assets


2. Rename every .atlas file to have .txt at the end of them


3. Select the three files for your Spine assets from your file browser.


4. Drag all the files into the Unity project folder. This will cause the Spine-Unity runtime to process them and auto-generate the necessary Unity assets (Figure 02).


Figure 02: The files after being dragged over, along with the files that the runtime generated

Figure 02: The files after being dragged over, along with the files that the runtime generated


5. Drag the SkeletonData asset into the Scene or the Hierarchy window.


6. Select SkeletonAnimation from the context menu (Figure 03).


Figure 03: Context menu

Figure 03: Context menu


During Step 3, the Spine-Unity runtime will have generated three new files (Figure 04):


  • A _Material asset that holds references to the Shader and .png Texture

  • An _Atlas asset that holds a reference to the material and the .atlas.txt file

  • A _SkeletonData asset that holds a reference to the JSON and the _Atlas asset

Figure 04: Finalized Spine asset imported into Unity

Figure 04: Finalized Spine asset imported into Unity


2. Conclusion

As long as you make sure your Spine-Unity runtime is up to date, you shouldn’t have any issues with importing your assets into the Unity Editor.


Complete this tutorial