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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
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.