Search Issue Tracker

Won't Fix

Votes

0

Found in

2017.4.0f1

2018.3.0a1

2018.3.8f1

2019.1.0a1

2019.2.0a1

Issue ID

1136798

Regression

No

MenuItem is executed more than once when multiple objects are selected

Scripting

-

How to reproduce:
1. Open attached project
2. Open SampleScene
3. In Hierarchy view, make none of object is selected and run "My Test Menu" in right-click context menu. You can see single "0" is displayed in Console.
4. Select both "Main Camera" and "Directional Light" in Hierarchy view, and run "My Test Menu" again. You can see two "2" are displayed. It should be called once.

Reproducible with: 2017.4.23f1, 2018.3.9f1, 2019.1.0b7, 2019.2.0a8

Actual results: MenuItem Script gets executed twice when multiple objects are selected and it's called from the Hierarchy
Expected results: It should only be called once when multiple objects are selected

Notes: the issue does not reproduce if you call this script via GameObject>My Test Menu

  1. Resolution Note (2019.2.X):

    We really appreciate your contribution to the Unity product. Thank you for reporting this issue. We take every case submitted to us seriously by investigating the impact on you, our customer, as well as the impact it may have on the engineering and experience of our product.

    This particular case has been investigated thoroughly and we have decided, in the interests of protecting the stability and features of Unity for users that rely upon the affected versions, to not address this issue. This behavior applies to all items that are selected for all the MenuItems in that specific menu, and you can verify this yourself by selecting multiple objects and create a new object or camera. It will be added to all of the selected items.

Comments (11)

  1. datagreed

    May 30, 2019 17:25

    So, why is this won't fix? How are we supposed to handle different behaviour when selecting something from the Project Hierarchy pane or from main Unity menu?..

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.