Hi, my programmer in my team is having a problem with the UI when it follow the player (main camera). When it switch or initiate a new scene, it “shakes”.
Any help is welcome, he has been days trying to fix it.
I uploaded a video with english subtitles (he doesn´t speak english), that you need to turn on.
And here is the problem itself.
Pixel Pefect Component that is added to the camera when the scene is loaded
3- I checked with two inspector windows if when I move the player, the position of the camera in relation with the interface differs even in a decimal… but no, they are equal (the same).
It seems the readjustment of the camera with the physic pixels of the pixel perfect system don’t work directly with the canvas. So I needed to ask from script the component “CameraPixelPerfect”, and send to it the canvas position and then return me the correct position with the function “RoundToPixel()”.
I’m currently developing a pixel game and ran into an issue where objects shake when using Cinemachine. Even with Pixel Perfect enabled in the settings, the shaking continues. However, without Pixel Perfect, the shaking stops, and it also doesn’t happen when Cinemachine isn’t used. I believe the problem is related to the damping in Cinemachine, as disabling it seems to fix the issue.
Give my solution a try, and I’d appreciate any feedback!