https://github.com/gdasim/unitygameviewmanager
Unity Extension to set game view resolution in editor on play, and remove after play
https://github.com/gdasim/unitygameviewmanager
Last synced: 3 months ago
JSON representation
Unity Extension to set game view resolution in editor on play, and remove after play
- Host: GitHub
- URL: https://github.com/gdasim/unitygameviewmanager
- Owner: GDAsim
- License: mit
- Created: 2022-04-09T20:26:34.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-09T20:42:22.000Z (over 4 years ago)
- Last Synced: 2025-06-15T09:37:54.497Z (about 1 year ago)
- Language: C#
- Size: 7.81 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UnityGameViewManager
Programmatically changes Unity Game Window's Resolution On Play. Useful for testing under fix resolution
## How to use:
- Place UnityGameViewManager.cs anywhere in assets folder
- Call UnityResolutionManager.UseCustomResolution(width,height,label) to set the resolution of the GameView within Unity Editor on Play
- Automatically removes when Play ends
- Note that you should not remove or add new resolution while in Play Mode
## Dev Note:
- Took the code from unity forums and add Contains() function from syy9
## Source:
- https://answers.unity.com/questions/956123/add-and-select-game-view-resolution.html
- https://forum.unity.com/threads/add-game-view-resolution-programatically-old-solution-doesnt-work.860563/
- https://github.com/Syy9/GameViewSizeChanger