Unity Escales

MrLimbus

New Member
Jun 21, 2022
3
0
Hello everyone I am currently developing a video game, I have a question.
When I added my sprite (not pixel art) it was too big for the screen and when I scaled it down it looked really blurry, is there any way to fix it or do I have to keep going (maybe everything will be fixed just by adjusting the camera zoom) any help?
 

MoonPillow

Newbie
Apr 5, 2020
31
9
Try to check this...
In my opinion you need to fix the "pixel per unit" for the sprite instead of scaling it.
 

Tompte

Member
Dec 22, 2017
216
157
The blurry sprite you're seeing might be a lower res , so if you want to keep things sharp, uncheck "Generate Mip Maps" in the sprite's settings.

mip.png

Alternatively, you can access the debug inspector and change the texture's mip map bias value, to bias the mip map towards a sharper image (-0.8 works well for me).
debug.png bias.png

You can also do the same in code, which might be more convenient:
Code:
sprite.texture.mipMapBias = -0.8f; // Sharpen
Doing this on a sprite atlas will sharpen the entire atlas.

But you should really be asking yourself why you're using an over-sized sprite to begin with. Why didn't you rescale the image to an appropriate size before importing into Unity?
 
Last edited: