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

Bug Mouse click doesn't hit the correct button in some window resolution

Discussion in 'UGUI & TextMesh Pro' started by KimFlame, Aug 11, 2022.

  1. KimFlame


    Aug 11, 2022

    I create a project in Unity version 2021.3.6f1, and widnow resolution is 1920 x 540:
    There are 100 buttons, and all text content is each button index and mouse position.

    At first it works perfectly in Unity Editor. But after the project build a window standalone exe, a bug is found.

    When I hit buttons before mouse position is (1441, any y), it work perfectly:

    But when I hit buttons after mouse position is (1441, any y), it hits upper other button:

    There is no any plugins in this test project, just ugui button. And if I change widnow resolution to 1920 x 1080, it works perfectly in window standalone exe:

    I also test in other Unity version, then I find it works correctly before version 2021, and it works wrong in others.

    Here is my test project:

    Please check it is a bug or not, thanks.
    Last edited: Aug 11, 2022