Search Issue Tracker
Fixed in 2021.3.17f1
Fixed in 2021.3.X, 2022.2.X, 2023.1.X, 2023.1.0a18
Won't Fix in 2022.1.X
Votes
0
Found in
2021.3.5f1
2022.1.16f1
2022.2.0b8
2023.1.0a9
Issue ID
UUM-14340
Regression
No
In Device Simulator OnGUI events are called twice
Reproducible in Unity 2021.3.5f1
- Open the attached project
- Open Device Simulator and Game
- Click in Game - Debug Log is printed once
- Click in Device Simulator - Debug Log is printed twice
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)
{
Debug.Log("OnGUI :: Mouse Up!");
}
}
Comments (2)
-
hurleybird
Jan 16, 2023 22:32
This makes the device simulator potentially worse than useless in 2022.1, and Unity won't fix it?
2022.1 is the only branch that is both relatively bleeding edge and relatively production ready.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on mono_log_write_logfile when more than one copy of bee_backend is running
- NativeList<T>.ParallelWriter.AddNoResize() causes memory corruption when used in a [BurstCompile] IJobParallelFor on Web builds
- Realtime reflection probe changes light strength when removing light sources using URP WebGL
- Objects near the screen edge are not culled when using GPU Occlusion Culling
- InvalidCastException is thrown when hovering over a Tilemap with a saved Random Brush pick containing empty cells
Resolution Note (fix version 2023.1):
Fixed in: 2023.1.0a18
Resolution Note (fix version 2022.2):
Fixed issue where mouse up and mouse down events were reported twice in OnGUI when using the Device Simulator
Resolution Note (2022.1.X):
Due to time constraints, this issue will be fixed for 2022.2 and for 2021.3 LTS
Resolution Note (fix version 2021.3):
Fixed issue where mouse up and mouse down events were reported twice in OnGUI when using the Device Simulator