White lines around tiles when switching to fullscreen

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By YAGU

After using Tilemaps i got white lines on some of the tiles.
Enabling “Pixel Snap” helped to get rid of them while in window mode without resizing the window.

But when i resize the window or switch to fullscreen mode, those lines are back.

What can I do?

:bust_in_silhouette: Reply From: Lfzinho

That happens because of the screen resolution. When you’re in fullscreen, the pixels in the window doesn’t exactly match the proportion of your game screen, so the tiles need to be streched a little bit.

To make them strech the way you want, you just need to change your Window Strech Mode to “Viewport”, in Project Settings > Window > Mode. :stuck_out_tongue: