When I run a game, I want to make the game window in the center of the screen , so I turn on the "Allow HDPI".

But then, there will be this middle line thing when I maximize the window.

So what is it? Will it be a problem when I export a game?


Allow HDPI On


Allow HDPI Off

  • Look into pixel perfect rendering. There are a few settings you have to use to avoid these things. One of them that is easy to select is called Use GPU Pixel Snapping in the Project Settings. This may fix it, but there may be other things needed.

Is the background a TileMap? It looks like it might be the gap between tiles and/or sprites, but I am not sure.

    Look into pixel perfect rendering. There are a few settings you have to use to avoid these things. One of them that is easy to select is called Use GPU Pixel Snapping in the Project Settings. This may fix it, but there may be other things needed.