Skip to main content

Unity 2D Animation Tutorial: Create Character Rigging and Bone Animation Without Spine

Create Unity 2D Animation Step By Step Tutorial

Updated 14 min readMarkdown
Unity 2D Animation Tutorial: Create Character Rigging and Bone Animation Without Spine

Unity 2D Bone Animation is one of the easiest ways to create smooth and reusable character animations for 2D games without manually drawing every animation frame.

Have you ever wanted to animate a 2D character's arms, legs, head, or body without creating dozens of separate images?

The good news is that Unity already provides tools to do this!

With the Unity 2D Animation package, you can create a skeleton, connect bones to your character sprite, adjust bone weights, and animate different body parts directly inside Unity.

You don't need Spine or expensive third-party animation software to get started.

In this tutorial, we will learn how Unity 2D bone animation works and how to create a complete character rig step by step. We will also explore Sprite Skin, mesh generation, weight painting, IK, and the Animator Controller.

Let's build our first 2D character animation!

1. What Is 2D Bone Animation in Unity?

2D Bone Animation is a skeletal animation technique in which bones control the movement and deformation of a 2D character.

Think of a real human skeleton. When you move your arm, the connected bones move together. Unity uses a similar concept to animate 2D characters.

Instead of creating a new sprite for every movement, you create a skeleton and attach it to your character.

For example, a simple 2D character can have the following bones:

  • Root Bone
  • Body Bone
  • Head Bone
  • Upper Arm
  • Lower Arm
  • Upper Leg
  • Lower Leg

When you rotate the upper arm, the lower arm follows it because both bones are connected through a hierarchy.

This makes character animation much easier to manage.

Why use Unity 2D Bone Animation?

  • Create reusable character animations.
  • Animate individual body parts.
  • Reduce the need for multiple animation sprites.
  • Create smooth idle, walking, running, and jumping animations.
  • Use IK to control hands and feet.
  • Build animations directly inside Unity.
  • Avoid depending on external animation tools like Spine.
Unity 2D Bone Animation showing a complete character skeleton with connected bones

2. Install the Unity 2D Animation Package

Before creating bones, we need to install the required Unity package.

Follow these steps:

  1. Open your Unity project.
  2. Navigate to Window → Package Manager.
  3. Select Unity Registry.
  4. Search for 2D Animation.
  5. Select the package.
  6. Click Install.

You should also have the 2D Sprite package installed.

If you are working with layered PSD characters, you can optionally install the 2D PSD Importer package.

After installation, Unity provides the Skinning Editor, which contains the tools required for creating bones, generating geometry, and setting up bone weights.

Installing the Unity 2D Animation package from Unity Package Manager.

3. Prepare Your 2D Character Sprite

Before creating a skeleton, you need a character sprite.

There are two common ways to prepare a 2D character.

Method 1: Use a Single Character Sprite

You can use one complete character image and create bones directly over it.

This is useful for simple characters where you want to bend or deform different body parts.

For example, you can create bones for the arms, legs, head, and body using one sprite.

Method 2: Use Separate Body Parts

You can also prepare your character as individual transparent images.

For example:

  • Head.png
  • Body.png
  • LeftArm.png
  • RightArm.png
  • LeftLeg.png
  • RightLeg.png

This approach gives you more control over individual body parts.

For example, you can rotate the head independently without affecting the entire character.

My suggestion: If you are creating a simple 2D game character, start with separate body parts. It makes it easier to understand rigging and control character movements.

Make sure your images have transparent backgrounds and that overlapping areas around joints are prepared properly.

Preparing separate 2D character body parts for Unity skeletal rigging

4. Open the Skinning Editor in Unity

Now let's prepare the character for bone rigging.

  1. Select your character sprite in the Project window.
  2. In the Inspector, set Texture Type to Sprite (2D and UI).
  3. Set Sprite Mode to Single or Multiple, depending on your sprite.
  4. Click Apply.
  5. Open the Sprite Editor.
  6. Select the Skinning Editor.

The Skinning Editor is where you create and configure the character skeleton.

You will find several useful tools, including:

  • Create Bone
  • Edit Bone
  • Geometry
  • Weight
  • Preview

The exact layout may differ slightly depending on your Unity version.

Unity Skinning Editor interface for 2D character bone rigging.

5. Create Bones and Build a Skeleton

Now comes the most important part of Unity 2D rigging: creating bones.

Bones define how your character will move.

Step 1: Select the Bone Tool

Inside the Skinning Editor, select the Create Bone tool.

Click on your character to create the first bone.

Start with the body or root area.

Step 2: Create the Main Body Bones

Create bones for:

  • Body
  • Head
  • Left arm
  • Right arm
  • Left leg
  • Right leg

Step 3: Create Child Bones

Now create connected bones for the arms and legs.

For example, the arm hierarchy should look like this:

  • Body
    • Upper Arm
      • Lower Arm

Similarly, for the legs:

  • Body
    • Upper Leg
      • Lower Leg

This hierarchy allows connected bones to move naturally.

Step 4: Check Bone Connections

Make sure that the bones are connected correctly.

For example, when you rotate the upper arm, the lower arm should follow its movement.

A proper skeleton is important because it makes future animation much easier.

Creating a Unity 2D character skeleton using connected bones and bone hierarchy.

6. Generate Mesh Geometry for Bone Animation

Creating bones alone is not enough.

Unity also needs a mesh that can deform when the bones move.

This is where geometry comes in.

Geometry divides your character sprite into small triangles.

These triangles allow Unity to deform the sprite smoothly when you rotate or move bones.

Follow these steps:

  1. Select the Geometry tool.
  2. Generate geometry automatically.
  3. Check whether the triangles cover the character properly.
  4. Adjust the geometry settings if needed.
  5. Add more geometry around joints such as elbows, knees and shoulders.

For example, if you want your character's arm to bend naturally, you need enough vertices around the elbow.

Too little geometry can create unnatural bending.

However, adding too many vertices can increase processing overhead without providing meaningful improvements.

Try to maintain a balance between mesh quality and performance.

Unity 2D character mesh generation showing triangles and vertices for skeletal animation

7. Apply Bone Weights Using Auto Weights

This is another important step in Unity 2D Bone Animation.

Bone weights determine how much influence each bone has over different parts of the character mesh.

For example:

  • The head bone should control the head area.
  • The upper arm bone should influence the upper arm.
  • The lower arm bone should influence the forearm.
  • Leg bones should control their respective leg areas.

Unity provides an automatic weight calculation feature.

Follow these steps:

  1. Select the Weight tool in the Skinning Editor.
  2. Generate Auto Weights.
  3. Preview the influence of each bone.
  4. Check the areas around joints.
  5. Manually adjust weights if required.

Sometimes automatic weights may produce unwanted deformation.

For example, rotating an arm might also deform the chest.

You can fix this by adjusting the bone influence around the shoulder.

Pro Tip: Always test your bone movements before applying the rig. Check whether the character bends correctly around the elbows, knees and shoulders.

8. Add Sprite Skin to Your Character

Once your bones, geometry, and weights are ready, apply your changes in the Skinning Editor.

Now return to the Scene view.

  1. Drag your character sprite into the Scene.
  2. Select the character GameObject.
  3. Check whether Unity has added the Sprite Skin component.
  4. If not, select Add Component and search for Sprite Skin.
  5. Configure the root bone if required.
  6. Verify that the character sprite is connected to the skeleton.

The Sprite Skin component connects the sprite mesh to the bone hierarchy.

When you rotate or move bones, Sprite Skin deforms the sprite accordingly.

Now you should be able to select individual bones and test their movements.

9. Create Your First Bone Animation Using the Animation Window

Now that the skeleton is ready, let's create an actual animation.

We will start with a simple idle animation.

Step 1: Open the Animation Window

  1. Select your character GameObject.
  2. Go to Window → Animation → Animation.
  3. Click Create.
  4. Save the animation clip as Idle.anim.

Unity will create an Animator component and an Animator Controller if needed.

Step 2: Enable Animation Recording

Click the red Record button in the Animation window.

Now Unity will record changes to the character's bones as keyframes.

Step 3: Add Keyframes

Let's create a simple breathing animation.

Time Character movement
0 seconds Normal standing pose
0.5 seconds Slightly move the body upward
1 second Return to the original pose

You can also rotate the head slightly or move the arms to make the animation look more natural.

Step 4: Preview the Animation

Click the Record button again to stop recording.

Press Play in the Animation window to preview your animation.

Congratulations! Your first Unity 2D bone animation is ready.

10. Create Walking, Running and Jumping Animations

Once you understand basic bone animation, you can create multiple animation clips using the same skeleton.

Here are some examples.

Idle Animation

  • Slight head movement.
  • Small body movement.
  • Breathing effect.
  • Gentle arm movement.

Walking Animation

  • Move the left leg forward.
  • Move the right leg backward.
  • Swing the arms in opposite directions.
  • Repeat the animation smoothly.

Running Animation

  • Increase the speed of leg movement.
  • Move the arms faster.
  • Add more body movement.
  • Use stronger poses.

Jump Animation

  • Bend the legs before jumping.
  • Move the body upward.
  • Stretch the legs during the jump.
  • Bring the legs back down while landing.

You can create separate animation clips such as:

  • Idle.anim
  • Walk.anim
  • Run.anim
  • Jump.anim
  • Attack.anim

The biggest advantage is that all these animations can use the same skeleton.

You don't need to create a new rig for every animation.

11. Use Inverse Kinematics (IK) for Better Character Movement

If you want more advanced character animations, Unity also provides Inverse Kinematics (IK).

Normally, you animate bones by rotating each bone individually.

With IK, you control the end point of a bone chain, and Unity calculates the required bone rotations.

For example, imagine moving a character's hand toward an object.

Without IK, you may need to adjust the upper arm and lower arm separately.

With IK, you can move the hand target, and the connected bones automatically adjust.

To use IK:

  1. Open Package Manager.
  2. Search for the 2D IK package.
  3. Install it.
  4. Add the required IK components and constraints.
  5. Configure the bone chain and target.
  6. Move the target to test the movement.

Some useful 2D IK components include:

  • IK Manager 2D
  • Limb Solver 2D
  • CCD Solver 2D

For arms and legs, Limb Solver 2D is a good starting point.

12. Control Character Animations Using Animator Controller

After creating multiple animation clips, you need a way to control when each animation plays.

Unity's Animator Controller makes this possible.

For example, you can switch between Idle and Walk animations based on the character's movement.

Follow these steps:

  1. Open Window → Animation → Animator.
  2. Create or assign an Animator Controller.
  3. Add your animation clips.
  4. Create transitions between animation states.
  5. Add parameters such as Speed and IsJumping.

Here is a simple C# example:

using UnityEngine;

public class CharacterAnimation : MonoBehaviour
{
    private Animator animator;

    private void Awake()
    {
        animator = GetComponent<Animator>();
    }

    private void Update()
    {
        float speed = Input.GetAxisRaw("Horizontal");

        animator.SetFloat("Speed", Mathf.Abs(speed));
    }
}

Create a float parameter named Speed in the Animator Controller.

Now configure your transitions:

  • Idle to Walk when Speed is greater than 0.1.
  • Walk to Idle when Speed is less than 0.1.

This is a simple way to connect your character movement with its animations.

13. Tips to Improve Unity 2D Bone Animation

Here are some practical tips that can help you create better character animations.

1. Build a Proper Bone Hierarchy

Always connect bones logically. A well-organized skeleton makes animation easier to manage.

2. Use Enough Geometry Around Joints

Elbows, knees and shoulders need enough vertices to bend naturally.

3. Check Bone Weights

Incorrect weights can cause unwanted sprite deformation.

4. Use IK When Necessary

IK can save time when controlling hands and feet.

5. Keep Animations Smooth

Use proper keyframe spacing and interpolation curves.

6. Reuse Your Character Skeleton

Once you create a good rig, use it for multiple animation clips.

7. Test in Play Mode

Always test your animations in the actual game scene to identify unexpected movement or deformation.

Conclusion: Unity 2D Bone Animation Makes Character Rigging Easier

Unity 2D Bone Animation is a powerful way to create smooth, reusable animations for 2D games.

You don't need Spine or expensive external software to get started. Unity's built-in 2D Animation package provides the essential tools for creating character skeletons, connecting bones, generating meshes, adjusting weights, and creating animations.

Quick Summary: Unity 2D Bone Animation Workflow

  1. Install the Unity 2D Animation package.
  2. Prepare your character sprite.
  3. Open Sprite Editor and Skinning Editor.
  4. Create bones and build a skeleton.
  5. Generate mesh geometry.
  6. Apply automatic bone weights.
  7. Add and configure Sprite Skin.
  8. Create animation clips using the Animation window.
  9. Use IK for advanced movements.
  10. Control animations through Animator Controller.

Do's and Don'ts

Do's Don'ts
Create a proper bone hierarchy Don't create unnecessary bones
Use enough geometry around joints Don't add excessive vertices
Test automatic bone weights Don't ignore deformation issues
Reuse your character skeleton Don't create a new rig for every animation
Use IK when needed Don't overcomplicate simple movements

If you are developing 2D games with Unity, give its 2D Animation package a try. It can save you time and help you create reusable character animations directly inside your game development workflow.

Frequently Asked Questions (FAQs)

1. What is Unity 2D Bone Animation?

Unity 2D Bone Animation is a skeletal animation technique that uses connected bones to control the movement and deformation of 2D character sprites.

2. Is Unity 2D Animation free?

Yes. The 2D Animation package is available through Unity Package Manager without purchasing additional animation software. Unity's overall licensing terms still apply.

3. Can I create 2D character animations in Unity without Spine?

Yes. Unity provides its own 2D Animation package with tools for bone creation, rigging, weight painting, Sprite Skin and animation.

4. What is the purpose of Sprite Skin in Unity?

Sprite Skin connects a 2D sprite mesh to its bone hierarchy. It allows the character sprite to deform when its bones move or rotate.

5. What is the difference between FK and IK in Unity 2D Animation?

FK (Forward Kinematics) involves rotating individual bones to control the movement of connected bones. IK (Inverse Kinematics) lets you control an endpoint, such as a hand or foot, while Unity calculates the required bone rotations.


Final Words

Thanks for reading this tutorial!

I hope this guide helped you understand Unity 2D Bone Animation and how to create your own character rigs and animations.

If you found this article useful:

  • ❤️ Give it a clap.
  • 🔄 Share it with other Unity developers.
  • 💬 Leave a comment if you have questions or suggestions.
  • 👨‍💻 Follow me for more Unity tutorials, game development tips, and practical guides.

Happy Game Development!

About the author

  • Hi, I am Alok Krishali. I am a game developer. I develop games in Java, Unity C#. I have knowledge of Java, C, C++, wordpress as well. I enjoy playing scricket and video games.

No comments yet. Be the first to comment.