Licensing
A Spine license is Installation
As a prerequisite, you must have a working Unity project to which you can add the spine-unity runtime.
- Download and install Via Unitypackage
You can install the spine-unity runtime into your Assets folder via the spine-unity unitypackage.
- Download the Via Git
Alternatively to installing from the unitypackage, you can get the latest changes via Git as described below.
- Clone the Via Unity Package Manager
Alternatively, you can install and update the spine-unity runtime via the Unity Package Manager.
If your Unity version is rather recent and your Unity Package Manager provides the
Add package from git URL...option, you can directly add the three packages with these URLs:https://github.com/EsotericSoftware/spine-runtimes.git?path=spine-csharp/src#4.2https://github.com/EsotericSoftware/spine-runtimes.git?path=spine-unity/Assets/Spine#4.2https://github.com/EsotericSoftware/spine-runtimes.git?path=spine-unity/Assets/Spine Examples#4.2
The latest Unity Package Manager URLs are also available on the Details
Open the
Package Managerin Unity (viaWindow > Package Manager). For each of the three packages, select the+icon, chooseAdd package from git URL..., and enter the git URL above (or from the Optional Extension UPM PackagesThe spine-unity runtime works without additional plugins. Some optional features, such as Timeline or Universal Render Pipeline (URP) support, are provided via separate Unity Package Manager (UPM) extension packages.
Why separate extension packages
Unity has moved many of their optional modules to the new Unity Package Manager (UPM) ecosystem. For example, their Universal Render Pipeline base shader files are also provided as a UPM package under the name
Universal RPand not part of every new Unity project out of the box.Including our Universal RP Spine shaders in the spine-unity runtime would lead to confusing error messages and additional configuration steps in case Unity's
Universal RPpackage has not been installed in a project. By providing our Universal RP Spine shaders as a UPM package, such dependencies are automatically resolved, making it easier to use this additional functionality.Installation
There are two options on installing extension UPM packages:
- A - Download the UPM package
- Download the desired UPM package via the B - Add package from git URL
If your Unity version is rather recent and your Unity Package Manager provides the
Add package from git URL...option, you can also directly use the git URL.Important Note: When installing the
URP Shaders UPM packagefrom git URL, it is required that you also have thespine-csharpandspine-unitypackages installed via the Unity Package Manager, and not from a unitypackage to theAssetsfolder. OtherwiseURP Shaders UPM packageshader include paths point to a spine-unity package directory which does not exist, leading to shader compile errors.- Find the git URL for your UPM package on the Samples
To explore the spine-unity runtime example scenes:
- Download and install Updating the spine-unity Runtime
Upgrade Guide
Before updating your project' spine-unity runtime, please consult our Update via Unitypackage
- Get the latest spine-unity runtime by downloading the Update via Git
- Get the latest spine-unity runtime by pulling the latest changes from the Update via Unity Package Manager
If you have added the spine-unity runtime as packages from a remote git URL via
Add package from git URLyou can use the Unity Package Manager to update the packages.Open the
Package Managerin Unity (viaWindow > Package Manager), select each of the packagesspine-csharp Runtimespine-unity Runtimespine-unity Runtime Examples
and hit the
Updatebutton to re-download the latest version of the specified branch from git.Note that if your URL has the ending
#4.2as inhttps://github.com/EsotericSoftware/spine-runtimes.git?path=spine-csharp/src#4.2, it will re-download the latest version from the4.2branch of the git repository.Updating an Extension UPM Package
When upgrading an A - In-place Update
- If you have your Unity project open, it is recommended to either a) close Unity or b) close any scene containing Spine components (e.g. by opening a new empty scene).
- Copy the content of the new UPM package zip file or git directory over the existing one. Depending on how you have installed the UPM package, this will be either the
project_root/Packages/package_namedirectory in your project or the arbitrary directory outside theAssetsdirectory from where you have loaded it viaAdd package from disk... - If you have closed Unity, open your project again in Unity.
- Unity will import the new assets and display a loading progress bar.
B - Add package from git URL
If you have added the package from a remote git URL via
Add package from git URLyou can use the Unity Package Manager to update the package. Open thePackage Managerin Unity (viaWindow > Package Manager), select the package that you want to update and hit theUpdatebutton to re-download the latest version from the specified branch from git. Note that if your URL has the ending#4.2as inhttps://github.com/.../Modules/com.esotericsoftware.spine.timeline#4.2, it will re-download the latest version from the4.2branch of the git repository.
- Get the latest spine-unity runtime by pulling the latest changes from the Update via Unity Package Manager
- Get the latest spine-unity runtime by downloading the Update via Git
- Download and install Updating the spine-unity Runtime
- Find the git URL for your UPM package on the Samples
- Download the desired UPM package via the B - Add package from git URL
- Clone the Via Unity Package Manager
- Download the Via Git