Back to all posts

2026-07-19

Unity 2D Sprite Animation with AI — From Sheet to Imported Clip

One of the slowest parts of building a 2D game is character animation. The asset store never has your character, and commissioning pixel art or illustration costs real money per motion. This guide walks the full path: start from a single character image, generate a sprite sheet with AI, and import it into Unity as animation clips.

All you need is one character image

A single full-body image of your character is enough — a hand-drawn illustration, commissioned art, or a character from another AI tool. Upload it to the GenioPlus animation tool and the background is removed automatically, with a green-screen version prepared. If the cutout isn't perfect, refine it with the wand, restore brush, and eraser.

Generating the sprite sheet

Pick one of the six motion presets (idle, walk, slash, jump, cast, hit) or write your own prompt, and the AI generates a short clip of your character in motion. Then extract frames: use the "Uniform" strategy for steady loops like walking, or "Distinct" — which favors frames with the biggest pose differences — for uneven motions like attacks. Key out the green screen, generate the sheet, and download the PNG, a per-frame ZIP, and a metadata JSON with the frame size, columns×rows, and spacing. That JSON is exactly what you need next.

Importing and slicing in Unity

Drop the sheet PNG into your Unity project, set Sprite Mode to "Multiple" in the inspector, and open the Sprite Editor. In the Slice menu choose "Grid By Cell Size" and enter the frame size (e.g. 256×256) and padding straight from the metadata JSON — the frames cut perfectly. Avoid Automatic slicing: it crops each frame differently, which makes the character jitter.

Creating the animation clip

Select all the sliced frames in the Project window and drag them into the scene (or hierarchy) — Unity prompts you to save a new animation clip, and creates the clip plus an Animator controller. Control playback speed with the clip's Samples (frames per second), and mirror left/right movement with the SpriteRenderer's Flip X instead of generating a second sheet. Make walk, idle, and attack clips and wire them up in the Animator for a complete basic set.

Two settings for pixel art

If your sheet is pixel-art style, set Filter Mode to "Point (no filter)" and Compression to "None" in the texture import settings. The default (Bilinear) smears pixel edges. Adjust Pixels Per Unit to match your frame size and in-game character scale.

Get started

Free signup credits on GenioPlus cover a full sheet. Grab one image of your character and try the walk preset first — and before exporting, use the "click-to-move test" to check the loop in a game-like view.

Try it with one character image

Start for free
Unity 2D Sprite Animation with AI — From Sheet to Imported Clip