Search Issue Tracker

Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.

Postponed

Votes

6

Found in

2020.3

2021.1

2021.1.9f1c1

2021.2

Issue ID

1342999

Regression

No

GetMouseButtonUp(0) doesn't return true sometimes

Input

-

How to reproduce:
1. Open the attached project "GetMouseButtonUp.zip"
2. Open the "SampleScene" Scene
3. Enter Play Mode
4. Click until the cube doesn't turn back to white from red

Expected result: GetMouseButtonUp(0) returns true and cube turns white
Actual result: GetMouseButtonUp(0) doesn't return true and the cube stays red

Reproducible with: 2020.3.12f1, 2021.1.11f1, 2021.2.0b1

Notes:
- The bug happens randomly
- On macOS, if the function doesn't return true on click then the return true is delayed until any other input, for example - mouse movement
- On Windows when GetMouseButtonUp(0) doesn't return true the next GetMouseButtonDown(0) doesn't return true as well
- Tried >1000 clicks on 2018.4.36f1 and 2019.4.28f1, but the problem didn't occur, however since the bug is random it's not certain that it's not reproducible with those versions

  1. Resolution Note:

    Postponing until further notice due to higher priority needs. We hope to revisit this at a later time.

Comments (1)

  1. makaka-org

    Sep 24, 2021 11:11

    I faced this issue on macOS in Unity Editor only.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.