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)'“

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.