The first of them is a gap between some tiles. Whenever I drag the camera I see black, empty lines between tiles. I believe it has something with the camera. I tried to use Math.RoundTo(I thought it was a subpixel problem) but it didn’t work. What is more, it destroyed the smoothness.
The second one is a problem with the size of GameObjects. If you draw lines and zoom in/out you will see that the size of these elements is cut.
What is the correct way of solving such an issues?
Thank you for the help,
roundPixels and extruder helped me a lot.
After debugging I see that the camera.scrollX/scrollY is also a problem - it generates ± 12 fraction digits and it may cause a subpixel problem. My code is: