2D Rigged Character Kit
A side-view pixel art character for Unity, rigged with bones and animated with smooth bone animation.
Every body part is a sprite on a bone, and every outfit plugs into the same rig through a Sprite Library. Swap hair, face, top and bottom independently, pick a skin tone, and all animations keep working. Skin tones are a palette swap in the shader: real palette colours, no tint. All art uses the AAP-64 palette.
Thank you for using this asset. If anything is unclear, get in touch.
Requirements
- Unity 6 (tested with 6000.5)
- Universal Render Pipeline 17 with the 2D Renderer
- 2D Animation 15 and 2D PSD Importer 14 (both part of the 2D feature set)
Sprite-Lit-Default. The Built-in Render Pipeline and the URP Universal (3D) Renderer are not supported.Quick start
- Open
Demo/PixelCharacterDemo.unityand press Play. - To use the character in your own scene, drag
Prefabs/PixelCharacter.prefabinto it. - For skin tones other than "Original", add one
SkinTonePalettecomponent to the scene (an empty GameObject is fine) and assignShaders/SpriteLitSkinTone.shaderto it.
Set the look in the Inspector under Look on CharacterVisualController. The prefab previews the indices while you edit them.
Folder structure
| Folder | Contents |
|---|---|
Art/Outfits | 12 outfit PSDs, one sprite per body part |
Art/Template | CharacterTemplate.psd, the base body to paint new outfits on |
Art/PixelCharacter.spriteLib | Sprite Library: 12 categories (body parts), labels 0 to 11 (outfits) |
Animations | Animator controller and clips |
Prefabs | PixelCharacter.prefab |
Runtime | Scripts (PixelCharacterKit namespace, own assembly) |
Shaders | Skin tone shader |
Demo | Demo scene and its script (own assembly, safe to delete) |
Outfits
| Index | File | Look |
|---|---|---|
| 0 | Outfit_01_Casual | Teal V-neck, khaki trousers, blonde ponytail |
| 1 | Outfit_02_Casual | Ochre V-neck, navy trousers, black ponytail |
| 2 | Outfit_03_Jacket | Green jacket, cream top, shorts, auburn bob |
| 3 | Outfit_04_Jacket | Purple jacket, white top, denim shorts, silver bob |
| 4 | Outfit_05_Tee | Red tee, charcoal trousers, brown hair |
| 5 | Outfit_06_Tee | Blue tee, khaki trousers, copper hair |
| 6 | Outfit_07_Hoodie | Green hoodie, blue jeans, blonde bun and beard |
| 7 | Outfit_08_Hoodie | Ochre hoodie, dark trousers, auburn bun and beard |
| 8 | Outfit_09_Suit | Navy suit, amber tie, black hair |
| 9 | Outfit_10_Suit | Beige suit, purple tie, brown hair |
| 10 | Outfit_11_Shirt | Pink shirt, navy trousers, blonde bun and beard |
| 11 | Outfit_12_Shirt | Mint shirt, khaki trousers, black bun and beard |
Mix and match
Swap clothes in groups: Top = Body and both arms, Bottom = both legs and both feet (the feet carry the trouser hems). CharacterBodyPartExtensions.Top and .Bottom hold these groups.
Skin tones
All skin is painted with exactly these 4 key colours. The shader replaces them with the 4 colours of the selected tone in SkinTonePalette. Tone 0 ("Original") keeps the default material. Add or edit tones in the Inspector; changes show live.
| Step | Key colour |
|---|---|
| Base | #ca8e7a |
| Shadow | #ae7a69 |
| Outline | #a1634e |
| Crease | #7f5a4e |
Rules for your own art
- Use the 4 key colours only for skin. The same value in clothing would change colour too.
- No in-between shades in the skin (soft brushes, anti-aliasing). Those pixels would not swap.
- Keep character textures uncompressed and without mipmaps (the template's importer settings already are). Compression shifts colour values and breaks the swap. Mipmaps let low texture quality settings swap in a half-size copy, which smears the pixels.
Animations
| State | Loop | Notes |
|---|---|---|
| Idle | yes | Default state |
| Walk | yes | Footstep events |
| Run | yes | Footstep events |
| Interact | yes | Working at a desk or machine |
| Sleep | no | Lies down; play it reversed to get up |
| Wave | no | Gesture, returns to Idle |
| Grab | no | Gesture, returns to Idle |
The arms and feet use 2D IK (IKManager2D with limb solvers), part of the 2D Animation package.
Scripting
All scripts live in the PixelCharacterKit namespace. CharacterVisualController on the prefab root is the one component you talk to.
using PixelCharacterKit;
var character = GetComponent<CharacterVisualController>();
// Whole outfit, skin tone 2
character.ApplyVisualData(CharacterVisualData.Outfit(4, skinTone: 2));
// Mix and match
character.SetBodyPart(CharacterBodyPart.Hair, 7);
character.SetBodyParts(CharacterBodyPartExtensions.Top, 9);
character.SetSkinTone(3);
// Random look, e.g. for crowds
character.Randomize();
// Save and restore: CharacterVisualData is a plain serializable class
CharacterVisualData saved = character.VisualData;
character.ApplyVisualData(saved);
// Animation
character.PlayAnimation(CharacterAnimationType.Walk); // safe to call every frame
character.PlayGesture(CharacterAnimationType.Wave); // one-shot, returns to Idle
StartCoroutine(character.PlayReversed(CharacterAnimationType.Sleep)); // get up again
character.Face(right: false); // mirror
// Footsteps: raised by animation events in Walk and Run
character.Footstep += () => audioSource.PlayOneShot(stepClip);
Main types
| Type | Purpose |
|---|---|
CharacterVisualController | Look (body parts, skin tone) and animation of one character |
CharacterVisualData | Serializable look: one index per body part plus a skin tone |
CharacterBodyPart | The 12 body parts; CharacterBodyPartExtensions adds the Top and Bottom groups |
CharacterAnimationType | Animator states: Idle, Walk, Run, Interact, Sleep, Wave, Grab |
SkinTonePalette | Skin tones and their shared materials; one per scene |
Your own outfits
- In Unity, duplicate
Art/Template/CharacterTemplate.psd(Ctrl+D) or one of the outfits. Duplicating in Unity keeps the importer settings: sprite rects, pivots and bone bindings. - Paint over the layers in a PSD editor (Photoshop, Aseprite, Krita, Photopea). Keep the layer names and the layer order, do not add or remove layers.
- Stay inside the layer boxes below. Every layer has two nearly invisible anchor pixels (RGBA 0,0,0,1) at the corners of its box. Do not delete them: they keep the layer bounds identical in every file, which is why one set of importer settings fits all outfits.
- Open
Art/PixelCharacter.spriteLiband add your sprites to each category with the next free number as label (12,13, ...). The index API picks them up automatically.
Layer boxes in pixels, origin top left, x1/y1 exclusive, canvas 48 × 110:
| Layer | Category | x0 | y0 | x1 | y1 |
|---|---|---|---|---|---|
| BeinL | LegL | 25 | 63 | 41 | 89 |
| FussL | FootL | 28 | 80 | 44 | 104 |
| BeinR | LegR | 15 | 65 | 32 | 90 |
| FussR | FootR | 16 | 83 | 31 | 105 |
| OberarmL | UpperArmL | 28 | 35 | 43 | 56 |
| UnterarmL | LowerArmL | 34 | 48 | 48 | 68 |
| Body | Body | 13 | 32 | 39 | 73 |
| Head | Head | 13 | 9 | 42 | 40 |
| Face | Face | 19 | 20 | 41 | 39 |
| Hair | Hair | 7 | 1 | 48 | 38 |
| OberarmR | UpperArmR | 6 | 37 | 23 | 60 |
| UnterarmR | LowerArmR | 5 | 51 | 16 | 75 |
Limitations
- Side view only, facing right. Mirror with
Face(false)for the other direction. - Smooth bone animation: rotated pixel sprites are not strictly pixel-perfect. Point filtering keeps the edges crisp. For a frame-by-frame look, set the animation curves to Constant.
FAQ
Characters with a skin tone are cyan for a moment.
That is Unity's placeholder while the editor compiles the skin tone shader in the background. It only happens in the editor, not in builds.
The pixels look smeared.
Make sure your character textures have mipmaps turned off. With mipmaps on, low texture quality settings (for example "Very Low") use a half-size copy of the texture.
The characters look wrong or are missing.
The sprites use the 2D lit shader. Your project needs URP with the 2D Renderer; the demo scene uses a Global Light 2D.
Can I use the characters in commercial games?
Yes. The asset is licensed under the standard Unity Asset Store EULA.
Changelog
1.0.0
- Initial release: 12 outfits, 5 skin tones, 7 animations, PSD template, demo scene.
Support
Questions, bug reports or ideas for new outfits: hyrobb@gmail.com.