Skip to content
This repository was archived by the owner on May 26, 2024. It is now read-only.
This repository was archived by the owner on May 26, 2024. It is now read-only.

Cap the window position value and size value within screen resolution #110

@hooh-hooah

Description

@hooh-hooah

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)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions