Engine Integration
Use Bone3 2D Skeletal Animations in Unity (spine-unity)
Bone3 exports official-runtime-verified Spine 3.8 and 4.2 data (.json or binary .skel, .atlas.txt, and PNG spritesheets) that import directly into Unity using Esoteric Software's official spine-unity UPM package.
Supports both Spine 3.8 and Spine 4.2 export targets to match your project's spine-unity package version.
Binary .skel export minimizes Unity build size and runtime skeleton parse time on mobile.
Full support for SkeletonAnimation, SkeletonGraphic (UGUI), skins, events, and AnimationState mixing.
Step-by-Step Workflow
- 1
Install spine-unity (3.8 or 4.2)
Install the official spine-unity runtime package in Unity via Package Manager (UPM) or .unitypackage.
- 2
Export Matching Spine Version from Bone3
In Bone3, open Export > Spine and choose 4.2 or 3.8 matching your spine-unity version. Rename the atlas extension to .atlas.txt if needed.
- 3
Import into Unity Assets Folder
Drag the .json (or .skel.bytes), .atlas.txt, and .png files into Unity. spine-unity auto-generates the AtlasAsset and SkeletonDataAsset.
- 4
Instantiate SkeletonAnimation or SkeletonGraphic
Drag the SkeletonDataAsset into your Scene or Canvas and trigger animations via AnimationState.SetAnimation.
Runtime Integration Example
using Spine.Unity;
using UnityEngine;
public class CharacterSpineController : MonoBehaviour {
[SerializeField] private SkeletonAnimation skeletonAnimation;
void Start() {
skeletonAnimation.AnimationState.SetAnimation(0, "idle", true);
}
public void PlayAttack() {
skeletonAnimation.AnimationState.SetAnimation(0, "attack", false);
skeletonAnimation.AnimationState.AddAnimation(0, "idle", true, 0f);
}
}Frequently Asked Questions
- Should I export JSON or binary .skel for Unity?
- Use JSON during rapid prototyping and binary .skel (renamed to .skel.bytes for Unity) for production mobile/WebGL builds to cut file size and load times.
- Why does spine-unity expect .atlas.txt instead of .atlas?
- Unity only recognizes text assets with a .txt extension automatically; renaming hero.atlas to hero.atlas.txt lets spine-unity auto-generate the AtlasAsset on import.
Related Guides & Integrations
Bone3 vs Spine 2D: Browser-Based Spine 3.8 & 4.2 Alternative
Compare Bone3 and Esoteric Software Spine 2D across browser workflow, PSD import, mesh & IK constraints, pricing, and verified Spine 3.8 / 4.2 runtime compatibility.
PSD to 2D Skeletal Animation Directly in Your Browser
Import layered Photoshop PSD files directly in the browser, preserve layer hierarchy and coordinates, rig bones and meshes, and export Spine 3.8 / 4.2 assets.
Use Bone3 2D Skeletal Animations in Godot 4 (spine-godot)
Bring Bone3 2D skeletal animations into Godot 4 with official spine-godot. Export Spine 4.2 / 3.8 .json or .skel files with .atlas and drive SpineSprite in GDScript.
Use Bone3 2D Skeletal Animations in Cocos Creator (sp.Skeleton)
Export Spine 3.8 & 4.2 JSON or binary .skel assets from Bone3 and load them directly into Cocos Creator sp.Skeleton components for mobile and mini-games.