Screen.width + Draw Texture not screen width

i use GUI.DrawTexture and Screen.width/height to fill the screen with a texture, but Screen.width gives me Screen.width - 1.

even when i write Screen.width + 1 in code i can’t get it to fill up the last vertical row of pixels.

may be your texture aspect ration is different a little to screen aspect ratio and it fits vertically but not enough for 1 pixel to fit horizontally?

Check your texture´s import settings on the inspector:

  • Make sure that the Texture Type is set to: GUI
  • Make sure that the Max Size (default 1024, I think) is enough to fill your screen size.

i found out that this is an editor bug