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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
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.