Not signed in
Copyright © 2026 Unity Technologies
Fixed in: 2023.1.0a18
Fixed issue where mouse up and mouse down events were reported twice in OnGUI when using the Device Simulator
Due to time constraints, this issue will be fixed for 2022.2 and for 2021.3 LTS
Reproducible in Unity 2021.3.5f1
Expected behaviour: Debug Log is printed once in both cases
There is a repro test project:
https://drive.google.com/file/d/1O5XY_h4xO5hUd2PfsyarmBdl5MuAdyEa/view?usp=sharing
Here is a video illustrating the issue:
https://drive.google.com/file/d/1fTcqmZAiLmevxH-rO0RkwFQKpf1upjOG/view?usp=sharing
(for some reason I couldn't attach it to Jira ticket)
Test code:
void OnGUI()
{
if (Event.current.type == EventType.MouseUp)
}
Sign in to see your voted issues