A simple utility for setting up a pixel perfect camera sized to a specific number and size of "tiles" in your viewport. It also lets you set the clear color for outside the viewport:
- Requires URP.
- The delayed response to the viewport changes in the preview is from running in the editor. Response is immediate in game.
- This is just a wrapper around Unity's built in "PixelPerfectCamera" and all the same restrictions from that component apply.
Via OpenUPM:
npm install -g openupm-cli
openupm add com.sark.tiled_camera
https://github.com/sarkahn/tiledcamera#upm
https://github.com/sarkahn/tiledcamera.git