Search Issue Tracker
By Design
Votes
0
Found in
2022.3.63f1
6000.0.51f1
6000.1.6f1
6000.2.0b5
Issue ID
UUM-108963
Regression
No
ContextClickEvent not fired at runtime for UI Toolkit elements when right-clicked
How to reproduce:
1. Open the “IN-103573_ContextClickEvent“ project
2. Open the SampleScene
3. Enter Play mode
4. Right-click on the “RUNTIME” label
5. Observe Console
Expected result: Two logs are seen: “PointerDownEvent” and “ContextClickEvent”
Actual result: Only “PointerDownEvent” log appears
Reproducible with: 2022.1.0a1, 2022.3.63f1, 6000.0.51f1, 6000.1.6f1, 6000.2.0b5
Reproducible on: macOS 15.5 (M1 Max), Windows 11 (by user)
Not reproducible on: no other environments tested
Notes:
- The expected behaviour can be tested by opening Window > EventTest and right-clicking the label
- This issue also reproduces in the Player
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
- URP Realtime reflection probes do not update when RenderProbe() is being called once per second
- Addressable terrain shader variants are stripped from the Player
- [iOS] Debug.Log() appears as <private> in Console app
- UI stays in the background when it is disabled in simulator
- A wrong log file is attached when project is launched with a "-logFile" command line argument
Resolution Note:
The ContextClickEvent is part of the EditorWindow event ecosystem just like the ExecuteCommandEvent and ValidateCommandEvent events. They are high-level, platform-dependent events that aren't currently supported outside of the editor and can be replaced by a combination of PointerDownEvent and PointerUpEvent. The Clickable class also provides support for right-click constraints with a readily usable `clicked` event workflow.