How to Make a Sprite Sheet for Unity and Unreal Paper2D
Pack separate sprite PNGs into a sprite sheet (texture atlas) and import it into Unity or Unreal Engine Paper2D, with the right settings for crisp sprites.
In this article
Hundreds of separate sprite files are slow to load and expensive to draw. Packing them into a sprite sheet (also called a texture atlas) lets the engine draw many sprites from one texture, which usually means fewer draw calls and faster loading. It also keeps your project tidy.
Here is how to make one and bring it into Unity or Unreal Engine's Paper2D.
Step 1: prepare and name your sprites
- Export every sprite or frame as a PNG with transparency.
- Name them so they sort correctly:
hero_run_01.png,hero_run_02.png, notrun1.png,run10.png,run2.png. - Keep the same canvas size for every frame of one animation, so the character does not jump around.
File names become sprite names in the engine, so this small step saves a lot of renaming later.
Step 2: pack them
Open the free Sprite Sheet Packer and select all your PNGs at once (up to 500). Then choose:
| Setting | Recommended | Why |
|---|---|---|
| Max atlas size | 2048 (4096 for PC/console) | Works on every platform |
| Padding | 2 px | Space between sprites |
| Extrude edges | 1–2 px | Stops colour bleeding at the edges |
| Trim transparent borders | On | Fits more sprites; offsets are saved |
| Power-of-two size | On | Best compression and mipmaps |
Press Pack, check the preview with frame outlines, and download the ZIP. You get:
atlas.png: the packed texture (more pages if the sprites do not fit in one)atlas.json: frame data in TexturePacker JSON (Hash) formatatlas.paper2dsprites: the same data with the extension Unreal's Paper2D importer expects
Step 3a: import into Unity
- Import
atlas.png. - Set Texture Type to Sprite (2D and UI) and Sprite Mode to Multiple.
- Open the Sprite Editor and use Slice → Automatic (or slice by grid if all frames are the same size).
- Click Apply. Your sprites appear under the texture, ready for Sprite Renderers, animations and UI.
For pixel art, also set Filter Mode to Point (no filter) and Compression to None.
Step 3b: import into Unreal Engine (Paper2D)
- Make sure the Paper2D plugin is enabled.
- Drag
atlas.paper2dspritestogether withatlas.pnginto the Content Browser. - Unreal creates a Paper2D sprite for every frame.
- Select the frames of one animation and create a Flipbook from them.
For pixel art, right-click the texture and use Sprite Actions → Apply Paper2D Texture Settings, which switches to nearest filtering and no compression.
Tips for better sprite sheets
- One sheet per character or UI screen. Things drawn together should share an atlas.
- Do not mix pixel art and smooth art in one atlas; they need different filtering.
- Keep animations together so a flipbook never needs two textures.
- Leave headroom. If the sheet is 95% full, the next added frame forces a second page.
Common problems
- Thin lines around sprites: increase padding and extrusion.
- Blurry pixel art: filtering is on. Use point / nearest and no compression.
- Animation jitters after trimming: your engine is ignoring trim offsets. Use the importer, or turn trimming off for that animation.
- Sprites in the wrong order: fix file names with leading zeros.
Summary
- Name frames carefully, pack with 2 px padding and edge extrusion.
- Unity: Sprite Mode Multiple, slice in the Sprite Editor.
- Unreal: import the .paper2dsprites file, then make flipbooks.
- Pixel art needs point filtering and no compression.
Frequently asked questions
What is the difference between a sprite sheet and a texture atlas?
They mean almost the same thing: many images packed into one texture. Sprite sheet is often used for animation frames, atlas for packing many different sprites or UI images.
What size should a sprite sheet be?
2048 × 2048 works on every platform. 4096 is fine on PC and consoles. Keep sizes a power of two so the atlas compresses well and supports mipmaps.
Why do I see lines between my sprites?
Filtering or mipmaps sample neighbouring pixels. Add padding between sprites and extrude their edges by 1–2 pixels. For pixel art also use point filtering.
Does Unity have its own sprite atlas?
Yes. Unity's Sprite Atlas asset can pack sprites inside the editor. A pre-packed sheet is still useful for Unreal, web engines, or when you want one fixed texture for animation frames.