Last active
August 19, 2019 03:20
-
-
Save sweatyc/25e00ab5848ab60575b972408fc26732 to your computer and use it in GitHub Desktop.
Unity Screen variables in window mode vs full-screen mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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