Search Issue Tracker

In Progress

Under Consideration for 2021.3.X, 2022.1.X

Fixed in 2023.1.0a18

In Progress in 2022.2.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!");

   }

}

  1. Resolution Note (fix version 2023.1.0a18):

    Fixed in: 2023.1.0a18

Comments (1)

  1. putlocker

    Sep 09, 2022 19:39

    ://play.acast.com/s/631b89cc3c2be9001419a751?
    ://play.acast.com/s/631b8bee97ab4100128a7a69?
    ://play.acast.com/s/631b8cf96bf4ff001484256c?
    ://play.acast.com/s/631b8d2d4b295e0014866219?
    ://play.acast.com/s/631b8e5d97ab4100128a83f7?
    ://play.acast.com/s/631b8f97e95f9600120d90fe?
    ://play.acast.com/s/631b916db032c20013fa6a9a?
    ://kendamahouse.com/wp-content/uploads/2022/09/gJGDKJktlkUAD.pdf
    ://dataverse.harvard.edu/dataverse/muziek-kan-iemand-ertoe-aanzetten/
    ://telegra.ph/HjkgkDutilu-09-09
    ://t.co/FQsu8aE9DG
    ://gitlab.com/hxdfxr/JjhLJDlkuYU
    ://t.co/GY84OVExC1

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.