Explore the properties you can use to automatically adjust the cameraA component which creates an image of a particular viewpoint in your scene. The output is either drawn to the screen or captured as a texture. More info
See in Glossary to scale and rotate pixelThe smallest unit in a computer image. Pixel size depends on your screen resolution. Pixel lighting is calculated at every screen pixel. More info
See in Glossary art precisely in the Universal Render PipelineA series of operations that take the contents of a Scene, and displays them on a screen. Unity lets you choose from pre-built render pipelines, or write your own. More info
See in Glossary (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.
For more information, refer to Add a pixel perfect camera and Configure a pixel perfect camera.
| Property | Description |
|---|---|
| Asset Pixels Per Unit | Sets how many pixels of width and height in the spriteA 2D graphic objects. If you are used to working in 3D, Sprites are essentially just standard textures but there are special techniques for combining and managing sprite textures for efficiency and convenience during development. More info See in Glossary image correspond to one unit in world space. Set this value to match the Pixels Per Unit values of all the sprites in the sceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info See in Glossary. |
| Reference Resolution | Sets the screen resolution your sprites are designed for. For example, if you set X to 320 and Y to 180, Unity sets the camera view to 320 sprite pixels in width and 180 sprite pixels in height. |
| Crop Frame | Crops the viewport with black bars to hide the areas beyond the aspect ratio of the Reference Resolution. The options are:
|
| Grid Snapping | Sets how Unity snaps and scales sprites. The options are:
|
| Filter Mode | Sets how Unity stretches the camera view when you set Crop Frame to Stretch Fill. The options are:
|
| Current Pixel Ratio | The ratio of the sprites in the Game view to their original size. For example, 2:1 means the sprites are twice their original size. |