Skip to content

Unity Extension to set game view resolution in editor on play, and remove after play

License

Notifications You must be signed in to change notification settings

GDAsim/UnityGameViewManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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:

About

Unity Extension to set game view resolution in editor on play, and remove after play

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages