How do I export pixel art for a game engine like Unity or Godot?

For a game engine export at 100%, the real size. The engine scales it up on screen. 1000% is only for posting your work.

In Aseprite:

  1. One sprite: File > Export As, Resize 100%, PNG.
  2. Animation or a set of sprites: File > Export Sprite Sheet, Resize 100%, PNG.
  3. Tiles: keep them on one grid, the same as your tile size, like 16x16. A sheet of 128, 256 or 512 px works well.

In Unity:

  1. Select the image, Texture Type: Sprite (2D and UI).
  2. Filter Mode: Point (no filter).
  3. Compression: None.
  4. Pixels Per Unit: your tile size, like 16.
  5. Add a Pixel Perfect Camera to keep pixels square when the game moves.

In Godot 4:

  1. Project Settings > Rendering > Textures > Canvas Textures > Default Texture Filter: Nearest.
  2. Import as PNG, no lossy compression.

If your sprite looks blurry in the game, its almost always the filter. Set it to Point or Nearest.

In the course

  • Lecture 7: Aseprite Colors and Settings
  • Lecture 69: Introduction To Tiles, Tilesets, And Tilemaps
  • Lecture 70: Let's Build a Pixel-Perfect Tilemap!

Related questions