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
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
Comments (11)
-
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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [WebGL][Android] Corrupt header when connecting via IP
- Editor and Android Player hangs/freezes when repeatedly Loading/Unloading AssetBundle in Vulkan
- Selecting a Material for HDRP Decal Projector in the Inspector window spams errors in the Console
- Expanded Asset Preview Box moves/hides when creating new Asset in Project window
- Player crashes on Meta Quest with "/apex/com.android/runtime/lib64/bionic/libc.so" when using OpenXR Plugin in a specific project
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.