Search Issue Tracker
Fixed
Fixed in 2022.3.14f1, 2023.2.0b18, 2023.3.0a8
Votes
0
Found in
2022.3.7f1
2023.1.8f1
2023.2.0b4
2023.3.0a5
Issue ID
UUM-45813
Regression
Yes
Scene view pan is not ignored when using custom tools with popup menus
Reproduction steps:
1. Open the attached project “ContextMenuIssue”
2. Open the “Assets/SelectionUtility/Sample/SelectionUtilitySample” Scene
3. In the Scene view right click on any element and move the cursor around
Expected result: A custom context menu is opened and the Scene view stays in place when moving the cursor around
Actual result: A custom context menu is opened but the Scene view is panned when moving the cursor
Reproducible with: 2022.2.0a13. 2022.3.7f1, 2023.1.8f1, 2023.2.0b4
Not reproducible with: 2021.3.29f1, 2022.2.0a12
Reproducible on: macOS 13.1.4 (c)
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
- GPU utilization increases by 20% on Meta Quest headsets when Render Graph is enabled on 6000.0.16f1 and higher
- Value on Slider (Int) control in UI Builder displays as default when saving UI Document
- Color mismatch in UI Builders Library panel when the Editors theme is set to Light Mode
- [Android ] "AndroidJNI.ToBooleanArray" returns a random non-zero value instead of "IntPtr.Zero" when the method argument is null
- Non-HDR color picker opens when selecting material color with HDR enabled
Resolution Note (fix version 2023.3.0a8):
Thank you for reporting this issue. It has been fixed. Your solution should work without any changes needed.
However, it is also possible to use the new context menu in the Scene view. You can register menu items for specific components by using the MenuItem attribute and the "CONTEXT/" prefix. These menu items will be added to the context menu in the Scene view and will appear when the current selection has the components in question. For example, [MenuItem("CONTEXT/Rigidbody/My custom action")].
Another alternative to your solution would be to use Shortcuts. It is now possible to allocate the same mouse button, in your case Mouse1, to multiple shortcuts as long as the context is different.
Resolution Note (fix version 2023.2.0b18):
Thank you for reporting this issue. It has been fixed. Your solution should work without any changes needed.
However, it is also possible to use the new context menu in the Scene view. You can register menu items for specific components by using the MenuItem attribute and the "CONTEXT/" prefix. These menu items will be added to the context menu in the Scene view and will appear when the current selection has the components in question. For example, [MenuItem("CONTEXT/Rigidbody/My custom action")].
Another alternative to your solution would be to use Shortcuts. It is now possible to allocate the same mouse button, in your case Mouse1, to multiple shortcuts as long as the context is different.
Resolution Note (fix version 2022.3.14f1):
Thank you for reporting this issue. It has been fixed.
Another solution would be to use Shortcuts. It is now possible to allocate the same mouse button, in your case Mouse1, to multiple shortcuts as long as the context is different.