Search Issue Tracker

Active

Votes

0

Found in

2019.4

2020.3

2021.1

2021.2

2021.2.0b13

2022.1

Issue ID

1370348

Regression

No

The first dropdown menu element is selected when selecting the last element when GenericMenu.allowDuplicateNames is set to true

IMGUI

-

How to reproduce:
1. Open project "BugReport.zip"
2. Open "Scene" Scene (Assets>Scene)
3. In the Hierarchy window select "GameObject"
4. In the Inspector window press button "Item X"
5. Choose the last "Item X"
6. Again press the button "Item X"
7. Observe which "Item X" is selected

Expected result: Last "Item X" is selected
Actual result: First "Item X" is selected

Reproducible with: 2019.4.31f1, 2020.3.20f1, 2021.1.25f1, 2021.2.0b16, 2022.1.0a12

Notes:
- In the "Test (script)" Component "Selected" window is showing the right selected item number
- Bug occurs when there are some elements with the same names

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.