Dismiss Notice
This Section is READ ONLY - All Posts Are Archived

Game Window Loses Focus/Minimizes

Discussion in 'User Interface (Including Launcher)' started by Bambino, Apr 17, 2018.

Thread Status:
Not open for further replies.
  1. Bambino

    Bambino Avatar

    Messages:
    562
    Likes Received:
    1,274
    Trophy Points:
    75
    Gender:
    Male
    Location:
    Texas
    1. Title: Game Window Loses Focus/Minimizes
    2. Reproduction Rate: 100%
    3. Blocker? Yes
    4. Details: Cursor loses focus in both full screen and windowed mode. While in fullscreen the entire game gets minimized. While in windowed mode, the game window loses focus. Most older games have this issue. Newer games tend to automatically do this or they give the option to do so. There is third-party software to help accomplish this, but it's not ideal by any means. Multiple monitor users tend to experience this issue more than single monitor users, but both have the issue. Playing in free mouse mode is much more prone to this issue. Locked mode much less so.
    5. Steps to Reproduce: While game is open click an area outside of the game window.
    6. User Specs: N/A
    Here is the Unity documentation on rectifying this age old issue:
    https://docs.unity3d.com/ScriptReference/Screen-lockCursor.html
    Cursor.lockState = CursorLockMode.Confined; // Keeps cursor confined in the game window
     
Thread Status:
Not open for further replies.