Documentation

Unity Engine


Unity Engine


Scale and rotate pixel art precisely in URP

Techniques and resources for using the Pixel Perfect Camera in your project.
Read time 1 minuteLast updated 10 days ago

To prevent pixel art looking blurry, or distorting when sprites move and rotate, add a pixel perfect camera to your scene in the Universal Render Pipeline (URP).
Important
The pixel perfect camera is included by default when you set up a project for 2D games with the Universal 2D template. Don't install the separate 2D Pixel Perfect package, which works only with the Built-In Render Pipeline.

Topic

Description

Add a pixel perfect cameraPrepare your sprites, set snap settings, and add the Pixel Perfect Camera component to your main camera.
Configure a pixel perfect cameraAdjust the viewport in the Game view after you add a pixel perfect camera to your scene.
Pixel Perfect Camera component referenceExplore the properties you can use to automatically adjust the camera to scale and rotate pixel art precisely.

Additional resources