twipcel

Guides · Sprite Sheet Maker

Make a sprite sheet Unity slices cleanly

Unity's Sprite Editor can cut a sheet into sprites automatically, but automatic slicing guesses from the empty space and often gets it wrong with touching or uneven frames. Slicing by cell size is exact, as long as every frame sits in an equal box and you know the numbers. The Sprite Sheet Maker builds that kind of sheet and tells you the numbers.

1. Make the sheet

  1. Open the Sprite Sheet Maker with the button below. It sets a grid with 2 px of space and 1 px of edge extrude, which stops neighbouring frames bleeding in when Unity compresses or filters the texture.
  2. Drop your frames or a folder, check the order, and watch the preview.
  3. Download the sheet. Under the preview, Use it in your engine → Unity lists the Pixel Size, Offset and Padding.

Open Sprite Sheet Maker with these settings

2. Import settings

  1. Drag the PNG into your Assets folder and select it.
  2. In the Inspector set Texture Type: Sprite (2D and UI) and Sprite Mode: Multiple.
  3. For pixel art, also set Filter Mode: Point (no filter) and Compression: None, and set Pixels Per Unit to your frame size (for example 16 or 32) so one frame is one unit tall.
  4. Click Apply.

3. Slice it

  1. Click Sprite Editor. If Unity says it's missing, install the 2D Sprite package from the Package Manager.
  2. Open Slice, choose Type: Grid By Cell Size, and enter the Pixel Size, Offset and Padding from the Maker.
  3. Click Slice, check the boxes line up with the frames, then Apply.

4. Turn it into an animation

In the Project window, expand the sheet to see the sliced sprites, select them all, and drag them into the Scene. Unity asks where to save a new animation clip and sets up the Animator for you. Change the clip's Samples (frames per second) in the Animation window if it plays too fast or slow.

Many animations at once

With Twipcel Pro, point the Maker's Batch step at a folder of animation folders (walk, run, jump…) and get one sheet per animation, all with the same settings. About Pro.

Open Sprite Sheet Maker with these settings