Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Maximize cursor position

Discussion in 'macOS' started by rtbz, Apr 21, 2020.

  1. rtbz

    rtbz

    Joined:
    Jan 18, 2017
    Posts:
    11
    I have a Canvas wrapper with a few UnityEngine.UI buttons.
    Everything works perfectly out of the box until I hit the green "maximize window" button on macOS. Then, the positioning for the mouse events is incorrect. Any ideas how to fix this?

    I'm using Unity 2019.3.10f1.
     
  2. evonfischeraca

    evonfischeraca

    Joined:
    Apr 8, 2020
    Posts:
    1
    Just came here to say that I'm experiencing the same problem with builds from 2019.3.5f1
     
  3. Tarrag

    Tarrag

    Joined:
    Nov 7, 2016
    Posts:
    215
    When maximizing the game window in mac osx the position of objects in the UI move (or cursor moves!) and are not interactable where the UI objects render on screen. For example, you click on the button but to interact with the button you need to click an inch below from where the button renders. Tested on 2019.3.0f5 and 2020.1.08b,
    2020.1.0b4,
    2020.2.0a1. I've filed bug.
    https://github.com/sergiosolorzano/MacOSXBugTest.git

    Does anyone have an interim solution please, maybe to constrain the app being maximized on window? Detrimental to distribution
     
    Last edited: May 15, 2020
  4. andrewenz

    andrewenz

    Joined:
    Feb 18, 2020
    Posts:
    3
    Same issue here. 2019.3.15f1. Works fine on the PC, but hitbox for the UI is out on 2 different versions of Mac OS when the window is maximised. Canvas is in screen space overlay.
     
    Last edited: Jun 13, 2020
  5. Tarrag

    Tarrag

    Joined:
    Nov 7, 2016
    Posts:
    215
    Hi, I raised this as a bug 14 May 2020, haven't yet received an update, I've gone back to ask
     
    Last edited: Jun 14, 2020
  6. andrewenz

    andrewenz

    Joined:
    Feb 18, 2020
    Posts:
    3
    Thanks @Tarrag ! Hope they get it fixed soon.
     
  7. Tarrag

    Tarrag

    Joined:
    Nov 7, 2016
    Posts:
    215
    sure, yeah me too :)
    BTW I noticed significant improvement on latest beta Unity 2020.1.0b12 for macos catalina
     
  8. andrewenz

    andrewenz

    Joined:
    Feb 18, 2020
    Posts:
    3
    Good to know. Cheers!