Pixels change/disappear as camera change position

Hello, I have a problem with my textures: as che player moves and the camera follows him, some pixels, along the borders of my textures,change/disappear.

If you check the images below, you can see the light grey lines getting thinner, the correct shapes are the thicker one on the top left for the wall, and the thicker one on the lower right for the floor. When the player moves they get thinner and lose some pixels.

This constant changing of shape gives an annoying visual effect, like a tremble/shake; is there a way to fix this please?

The resolution is 16:9 and the camera has a size of 5.
Those texture are png images, ARGB 32 bit, true color.
Image size 4096x4096, texture size 512x512.
Image size 1024x1024, texture size 512x70.
Texture type Sprite (2D and UI)
Sprite mode Multiple.
Pixels per unit 256.
No Mip Maps.
Filter mode Bilinear.

Thanks.

Hello, I have a problem with my textures: as che player moves and the camera follows him, some pixels, along the borders of my textures,change/disappear.

If you check the images below, you can see the light grey lines getting thinner, the correct shapes are the thicker one on the top left for the wall, and the thicker one on the lower right for the floor. When the player moves they get thinner and lose some pixels.

This constant changing of shape gives an annoying visual effect, like a tremble/shake; is there a way to fix this please?

The resolution is 16:9 and the camera has a size of 5.
Those texture are png images, ARGB 32 bit, true color.
Image size 4096x4096, texture size 512x512.
Image size 1024x1024, texture size 512x70.
Texture type Sprite (2D and UI)
Sprite mode Multiple.
Pixels per unit 256.
No Mip Maps.
Filter mode Bilinear.

Thanks.

Edit:
I noticed this happens even when I pan inside the scene view.

I did some research and apparently Unity has no setting to make the camera pixel perfect, which cause this stretching of the textures.

I used a script made by Shadeless (thanks a lot) to fix the problem; you can find the script here: Setting up Unity for pixel-perfect 2d project - Unity Engine - Unity Discussions

1 Like