Programmatically changes Unity Game Window's Resolution On Play. Useful for testing under fix resolution
- 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
- Took the code from unity forums and add Contains() function from syy9