Search Issue Tracker
Not Reproducible
Votes
0
Found in
2019.4
2020.3
2021.2
2021.2.14f1
2022.1
2022.2
Issue ID
1409967
Regression
No
UI Button OnClick event triggers twice when the mouse button is clicked and released
Reproduction steps:
1. Open the user's project
2. Play the "Revolution Management" scene
3. Press anywhere in the Game view
4. Select any 3 ideals (e.g. Liberty, God, Steel) and press the button below
5. Click on the Propaganda button on the left
6. Once the Propaganda panel opens, press Cancel
7. Look at the Console
Expected result: Console shows only 1 OnClick event log ("Propaganda panel click at <...>")
Actual result: Console shows 2 OnClick event logs ("Propaganda panel click at <...>")
Reproducible with: 2019.4.36f1, 2020.3.31f1, 2021.2.14f1, 2022.1.0a17, 2022.2.0a8
Note - One On Click () is triggered when the mouse button is pressed, another when released
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note:
Looks like it has something to do with the user project setup, can't reproduce with the same version/ui element using a new project. To fix the repro project, export package and import the package with a new project should fix it.