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. 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. 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. 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. 4

    Instantiate SkeletonAnimation or SkeletonGraphic

    Drag the SkeletonDataAsset into your Scene or Canvas and trigger animations via AnimationState.SetAnimation.

Runtime Integration Example

CharacterSpineController.cscsharp
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