Search Issue Tracker
Fixed
Votes
0
Found in
5.5.0f3
Issue ID
860417
Regression
Yes
Base class ContexMenu() function atribute don't work in Derived classes. Does not show up in inspector.
Reproduction Steps:
1. Open "BugRepro" project
2. Select "GameObject" in Hierarchy
3. In Inspector right click on "BaseClass" component
4. Notice that there is "Call function" option
5. Right Click on "DerrivedClass" component
6. Notice that there is no additional options
Note: "DerrivedClass" is derrived class of "BaseClass". "BaseClass" contains method "Function" with ContextMenu("Call function") atribute.
Expected behaviour: Derrived classes contains the same ContextMenu() created additional options.
Actual result: Derrived classes cannot call base class methods with ContextMenu() atribute from Inspector. It does not show up.
Reproduced on Unity 5.6.0a1, 5.6.0a6, 5.6.0b1
Did not reproduce on Unity 5.3.7p2, 5.4.3p3, 5.5.0p1
Regression introduced in 5.6.0a1
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
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
bourriquet
Jan 18, 2019 00:29
The bug is still here in 2018.2.
bourriquet
May 27, 2017 08:32
Definitely was not present in 5.5.0f3.
I had it when upgrading from 5.5 to 5.6.