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
- Redoing creation of Sub Scenes and Cube GameObjects in Hierarchy throws “Assertion failed on expression: 'targetScene != nullptr’” error in Console window
- Selecting “New Sub Scene” after assigning “New Scene” in Sub Scene Script Component throws “Destroying GameObjects immediately is not permitted” in the Console window
- Shader Graph "Zoom Step Size" can be set to 0 even though the zoom still works
- Enabling/Disabling the Deprecated Nodes doesn't apply to the opened Shader Graph unless any Variable is added to the Blackboard
- Group Selection title text size is smaller in renaming than the actual font size
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.