V
V
Vlad1222021-07-20 15:36:37
Unity
Vlad122, 2021-07-20 15:36:37

How to fix sprite warping in Unity when changing screen resolution?

60f6c228ecc9b592524467.png
When you change the screen resolution, some pixels are chewed up, as it were. Here in the photo you can already see it at 1920x1080, and the farther, the more it becomes visible. What can be done about it? Maybe you can find out what space the camera should capture to avoid this effect, etc.?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pashara, 2021-07-20
@Vlad122

This happens because of the scale of the raster.
The first question is: how critical is it if, in the x6 approximation, these are slightly deformed small points. I think that at high resolution it will not be noticeable at all.
If this still needs to be edited, then you need to do this:

  • by tiling the texture rather than stretching it
  • try to make the texture scale in screen coordinates be n:1, where n is an integer (i.e. so that the texture on the scene actually occupies 64n*64n pixels), or n = 2x, where x is an integer. (the idea is to scale up or down in multiples of two)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question