Search Issue Tracker
Active
Under Consideration for 6000.2.X, 6000.3.X, 6000.4.X
Votes
0
Found in
6000.2.14f1
6000.3.0f1
6000.4.0a5
6000.5.0a2
Issue ID
UUM-128163
Regression
Yes
Unable to override the internal abstract "ContextualMenuManager.CheckIfEventMatches(EventBase)" method when inheriting from the "ContextualMenuManager" class
Reproduction steps:
1. Create a new project
2. Save the attached “test.cs“ C# script in the “Assets” folder of the project (link in the internal comments)
3. Observe the Console after the domain reload finishes
Expected result: No errors appear in the Console
Actual result: CS0115 and CS0534 errors are thrown in the Console
Reproducible with: 6000.2.7f2, 6000.2.14f1, 6000.3.0f1, 6000.4.0a5, 6000.5.0a2
Not reproducible with: 6000.0.63f1, 6000.2.6f2
Reproducible on: Windows 11 Pro (25H2)
Not reproducible on: No other environment tested
Notes:
- This issue makes it impossible to inherit from the “ContextualMenuManager” class, as it requires an implementation of “ContextualMenuManager.CheckIfEventMatches(EventBase)” method, which is internal and cannot be overridden
- When testing pre-FAV versions, the “internal override bool CheckIfEventMatches(EventBase evt)” method will need to be deleted from the script for the script to compile
Full error messages:
- ”Assets\test.cs(16,28): error CS0115: 'test.CheckIfEventMatches(EventBase)': no suitable method found to override”
- “Assets\test.cs(4,14): error CS0534: 'test' does not implement inherited abstract member 'ContextualMenuManager.CheckIfEventMatches(EventBase)'“
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Nested Canvases' CanvasGroup.blocksRaycasts parameter ignores inheritance from parent Canvases' CanvasGroup when Override Sorting is enabled
- Warnings in the Bug Reporter window are cut off and not truncated when the Bug Reporter window is resized to its minimum size
- Color is incorrectly applied to objects when initialized with non-normalized parameters
- SerializationUtility.GetManagedReferencesWithMissingTypes() don't return null when “Prefab has missing SerializeReference Types“ warning banner is present
- Memory leak when VFX Graph is open and Camera has "Target Texture" enabled
Add comment