Graphics
Graphics copied to clipboard
Cap the window position value and size value within screen resolution
Expected Behavior
The menu needs to be seen after resolution changes.
Current Behavior
If your resolution has changed to lower from higher, the window will go out of bound which requires you to restart the game and change the resolution
Used AI_Graphics Version
master branch
Steps to Reproduce
- Get high resolution
- Move your menu to almost corner of screne.
- Change to lower resolution
- Feel the disappointment
Solutions
- Cap all of the value within screen resolution
- Screen Position : Cap within Screen Resolution - Menu Size
- Screen Size : Cap withing Screen Resolution * 0.8.
- Make AIGraphics change resolution in settings menu? Apparently it allows me to adjust "render resolution" when it's on full screen mode 😂
Screen.SetResolution(1920, 1080, UnityEngine.FullScreenMode.MaximizedWindow)
Screen.SetResolution(3840, 2160, UnityEngine.FullScreenMode.MaximizedWindow)
@hooh-hooah looks like you already know what you want to do? assigned to you.