Sprites moving (shaking) during animation while they should not
I'm currently working on a 2D project where we have sprites which are never moving, and we have a fixed camera. However, when animated, the sprites are moving in a random direction from 0.5 or 1 pixel around the place they should be. We have tried many things on the sprite but it looks like the problem comes from unity, as it doesn't appear if we try to make a gif from the animation for example.
I put the filter mode to bilinear after the problem showed up and it practically solves the problem for the eye but it is still moving.
Here you can see a video of the problem
Any idea of what is missing ?
Answer by streeetwalker · Apr 06, 2020 at 06:17 PM
@infenix, see this thread: https://forum.unity.com/threads/setting-for-pixel-game-sprite-seem-to-move-when-movement.501505/
It looks to be what i'm looking for but I can't achieve to set up this properly. As my sprites are at a pixels per unity resolution, i'm getting values a reference resolution of 11520x6480 which is really big no ? And it doesn't fix the problem. I put the filter mode to point and compression to none in my sprite parameters. Would you please help me to set it up the right way ?
Are you using the pixel perfect 2D package? I think you need to go through this documentation and install the package and use the camera asset that comes with it.
https://docs.unity3d.com/Packages/com.unity.2d.pixel-perfect@3.0/manual/index.html
I'm working with the universal render pipeline package which comes with an integrated pixel perfect camera package, which I used. I tried to download the pixel perfect packages which told me to use the one provided in URP. I think this is more a problem of misunderstanding how to set it up, but i do not understand what is made wrong. $$anonymous$$y pixel perfect is attached to the camera, with the (i suppose but i'm not sure) good parameters and it doesn't fix my problem.