Skip to content

Instantly share code, notes, and snippets.

@sweatyc
Last active August 19, 2019 03:20
Show Gist options
  • Save sweatyc/25e00ab5848ab60575b972408fc26732 to your computer and use it in GitHub Desktop.
Save sweatyc/25e00ab5848ab60575b972408fc26732 to your computer and use it in GitHub Desktop.
Unity Screen variables in window mode vs full-screen mode
Window Mode Full-screen Mode
Screen.width Window width Width in current resolution (Window width set before, or width set in Screen.SetResolution)
Screen.height Window height Width in current resolution (Window height set before, or height set in Screen.SetResolution)
Screen.currentResolution.width Same as Screen.width Same as Screen.width
Screen.currentResolution.height Same as Screen.height Same as Screen.height
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment