Design

Getting Pixel Art Crisp in Unity at Every Resolution

Pixel art that looks perfect in the editor goes soft or wobbly on a real phone. Here are the import settings, camera setup and scaling choices that keep every pixel sharp on any screen.

Vectra Play 5 min read
A close view of a monitor showing a pixel art character sprite in the Unity editor next to a drawing tablet

If your Unity pixel art looks blurry, three things are usually responsible: texture filtering, compression, and non-integer scaling. Set every sprite to Point filtering with no compression, add a Pixel Perfect Camera with the right Pixels Per Unit and reference resolution, and scale by whole numbers. Then snap moving sprites to the pixel grid to stop shimmer.

Fix the import settings first

Select your sprites in the Project window and check the Inspector. These are the settings that matter.

  1. Texture Type: Sprite (2D and UI).
  2. Filter Mode: Point (no filter). Bilinear blends neighbouring pixels, which is the main source of blur.
  3. Compression: None. Compressed formats smear colour edges on small sprites.
  4. Generate Mip Maps: off. You rarely want lower-detail copies of pixel art.
  5. Max Size: at least as large as the source image, so Unity never downscales it.
  6. Pixels Per Unit: the same value across every sprite, such as 16 or 32.

Setting this by hand on every import gets old fast. Save these settings as a Preset, then add it under Edit > Project Settings > Preset Manager with a filter on your art folder, and new imports pick it up automatically.

Add the Pixel Perfect Camera

With URP, add the Pixel Perfect Camera component to your main camera. It handles the maths of mapping art pixels to screen pixels.

The key fields:

Upscale Render Texture gives the most faithful retro look, because nothing can sit between pixels. It also makes rotation look chunky, which you may or may not want.

The mobile resolution problem

Pixel art stays sharp only when each art pixel becomes a whole number of screen pixels. Phones come in many sizes and aspect ratios, so that rarely happens by accident.

Screen heightReference heightScaleResult
10801806Exact, sharp
11701806.5Soft or uneven pixels
11701806, with letterboxSharp, thin bars top and bottom
14401808Exact, sharp

You have two honest choices. Accept small bars around the image and keep integer scaling, or let the visible area grow on wider screens so the scale stays whole while players see slightly more of the level.

The second option is common for phones. Design levels with a safe area in the middle and some extra scenery at the edges.

Turn off everything that smooths

A few project-wide settings quietly soften pixel art.

If you see thin lines between tiles, check the atlas padding and make sure tiles use the same Pixels Per Unit. Our notes on tilemap optimisation for mobile cover tile setup in more detail.

Stop the shimmer when sprites move

Static art can be crisp while moving art still wobbles. That happens when a sprite sits between two pixels and the renderer rounds it differently each frame.

Snap the visual position to the pixel grid. Keep physics on the parent and put this on the child that holds the sprite:

void LateUpdate()
{
    Vector3 p = transform.parent.position;
    p.x = Mathf.Round(p.x * ppu) / ppu;
    p.y = Mathf.Round(p.y * ppu) / ppu;
    transform.position = p;
}

Here ppu is your Pixels Per Unit. Physics keeps its smooth values, and only the drawn sprite snaps. Do the same for the camera follow target, or the whole screen can jitter.

If you use the Pixel Perfect Camera with Upscale Render Texture, much of this snapping happens for you. It is still worth checking slow movement, such as a character drifting at walking pace, since that is where shimmer shows most.

UI and text

The UI needs the same care. Set the Canvas Scaler to Scale With Screen Size with your reference resolution, and use a pixel font with its atlas set to Point filtering.

Check pixel art on at least two real phones with different aspect ratios. The editor Game view hides most scaling problems.

What we would do

We would set a Preset for sprite imports before the first piece of art lands, then add the Pixel Perfect Camera with letterboxing or a safe-area layout decided up front. Changing scaling strategy after levels exist is painful.

Then we would add the snapping script to every moving sprite and test on two phones. Our art pipeline guide covers the steps before the art reaches Unity.

The short version

If you want a hand getting a pixel art game sharp on every phone, drop us a line.

Related reading: 2D game feel with camera and tweening, Unity UI performance on mobile, Unity performance on low-end Android

#Unity#Art#2D#Mobile#Design
Your turn

Got a game idea? We build it.

You bring the concept. We design, build, test and launch it, and you own 100% of the finished game.

Share Your Game Idea  →