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
- Crash on [NSApplication endModalSession:] when saving while Play Mode is loading
- Incorrect Preferred Height calculation when a single text line uses different Font Assets
- [ShaderGraph] Redo Collapse Nodes action does not fully collapse the Nodes
- [Ubuntu] Mouse cursor is set box select mode after exiting VFX Graph's Rename Context function
- Unrecognized identifier DECLARE_STACK_CB error is thrown when VirtualTexture Property is used with Custom RenderTexture target
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.