I have spent hours on trying to perfect this.
I've tried setting values to Camera.TargetInWorldspace and Camera.CenterInWorldspace after player movement.
it somewhat works, but there's slight loss of quality for pixel art making it seem like the camera is doing something wrong even though I'm moving by pixels. I get a 90% perfect result by doing this with a semi random Z value, but something is missing.
The tiles on the tile map are either overlapping each other by 1 pixel or a bit stretched and the character is not pixel perfect.
I have also tried using Camera.UpdatePerspectiveCameraTargetBounds, but the way the Z value of CenterInWorldspace affects the view is giving me a headache.
What is the correct way to move the camera along with the player?
PS: Moving the background is not an option.