Search Issue Tracker
Fixed in 2019.1.X
Fixed in 2018.3.X
Votes
0
Found in
2018.2.1f1
Issue ID
1074892
Regression
No
Enabled GenericMenu.allowDuplicateNames doesn't allow duplicates in submenus
To reproduce:
1) Create new project
2) Create Editor folder and a script in there, use the code of first example here: https://docs.unity3d.com/ScriptReference/GenericMenu.AddItem.html
3) After the "GenericMenu menu = new GenericMenu();" add:
menu.allowDuplicateNames = true;
4) Duplicate "menu.AddItem(new GUIContent("MenuItem1"), false, Callback, "item 1");" and "menu.AddItem(new GUIContent("SubMenu/MenuItem3"), false, Callback, "item 3");" right under the corresponding originals
5) Open the newly made custom editor window
6) Right click in it to create the added context menu
Expected: Both duplicate entries are shown
Actual: Two MenuItem1 are shown, but only one MenuItem3
Reproduced in 2018.2.0b11, 2018.2.9f1
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Highlighter.Highlight does not find window when using class name as window title
- Highlighter.Highlight highlights a different component when multiple components have the same property path
- Highlighter.Highlight does not find elements in an array or list when the array or list is collapsed
- [URP][NRP] RenderPass, BeginSubPass, and EndRenderPass errors are thrown when Native RenderPass is enabled
- D3D11 swapchain error pop-up appears and the Editor shuts down when Generating Lighting with Probe Volumes present
Add comment