Graphics icon indicating copy to clipboard operation
Graphics copied to clipboard

Cap the window position value and size value within screen resolution

Open hooh-hooah opened this issue 5 years ago • 1 comments

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

  1. Get high resolution
  2. Move your menu to almost corner of screne.
  3. Change to lower resolution
  4. Feel the disappointment

Solutions

  1. Cap all of the value within screen resolution
  • Screen Position : Cap within Screen Resolution - Menu Size
  • Screen Size : Cap withing Screen Resolution * 0.8.
  1. 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 avatar May 23 '20 08:05 hooh-hooah

@hooh-hooah looks like you already know what you want to do? assigned to you.

ore- avatar May 24 '20 13:05 ore-