PixelPerfectCamera
A component that supports Pixel Perfect for Camera.
![]()
Properties
| Property Name | Description |
|---|---|
| Pixel Per Unit | Number of pixels per unit in the scene |
| Ref Resolution X | The width (pixels) of the expected resolution to draw as Pixel Perfect |
| Ref Resolution Y | The height (pixels) of the expected resolution to draw as Pixel Perfect |
| Pixel Snapping | Flags that snap to pixels on the screen |
Remarks
- The Camera Projection must be "Orthographic".
- Use PixelPerUnit (pixel size per unit in the scene) and RefResolution (assumed resolution you want to fit in the camera) to back-calculate the camera size and coordinates to achieve pixel perfection.