A downloadable C# script

Buy Now$1.00 USD or more

     One script to attach to your camera that will dynamically make your 2D sprites and pixel art crisp and clear. Feel free to move and rotate your sprites however you see fit within your game and this component will be sure to keep all pixels in place and properly oriented.

HOW TO USE:
- Be sure that all sprites you will be using in your scene have the same imported pixels per unit size.
- Select the camera in the hierarchy of your scene 
- In the inspector, scroll all the way down and select "Add Component"
- Search "Pixel Perfect Camera" and select the script when it appears.
- Set the "Pixels Per Unit" value to the same size you set to all your sprites in step one.
- Run your game and enjoy!

DISCLAIMERS
Some aspect ratios / unusual screen resolutions may cause uneven pixel scaling. Additionally, this script assumes you are keeping all of your sprites in your game the same pixels per unit size. Non-power-of-two sprite scaling will most likely cause similar and potentially unwanted results.

This work is licensed under Attribution. Feel free to adapt this code in any way you see fit commercially or non commercially, however proper credit must be given.

LINKS

Example textures: 

https://0x72.itch.io/16x16-industrial-tileset

Make a donation, amount of your choosing!

https://paypal.me/copaardvarkdonation?locale.x=en_US

Support me on Patreon

https://www.patreon.com/copperaardvarkgames

LudumDare account page:

https://ldjam.com/users/copper-aardvark-games/

Procedural Dungeon Generator for Unity:

https://copper-aardvark-games.itch.io/procedural-dungeon-generator

My LudumDare 44 Entry:

https://copper-aardvark-games.itch.io/kill-the-money-demo

Problems, questions, comments, contact me:
Via email: thatcopperaardvark@gmail.com
Via SMS: 830-446-0760

Purchase

Buy Now$1.00 USD or more

In order to download this C# script you must purchase it at or above the minimum price of $1 USD. You will get access to the following files:

PixelPerfectCamera.cs 4 kB

Leave a comment

Log in with itch.io to leave a comment.