Search Issue Tracker
By Design
Votes
0
Found in
2019.1.0a5
2019.2.0a1
2019.2.0b3
2019.3.0a1
Issue ID
1157429
Regression
No
ShortcutAttribute does not work when in Play mode and the Game view is selected
How to reproduce:
1. Open the attached "Shortcut.zip" project
2. Press Alt+N and notice that a message gets logged in the console
3. Enter Play mode, select the Game view and press Alt+N again
Expected results: A message gets logged in the console
Actual results: The shortcut does not work and no message is logged
Reproducible with: 2019.1.4f1, 2019.2.0b4, 2019.3.0a4
Note: Couldn't test with 2018.4 stream, 2019.1.0a1 - 2019.1.0a4 version due to "ShortcutAttribute is inaccessible due to its protection level" error
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
- Inspector elements are rendered twice when the script component is added via drag-and-drop while the HideFlags.HideInInspector property is set
- Error "Light baking failed with error code 5 (Convergence data not available while rendering lightmaps)" thrown in Console when generating lighting for specific GameObjects
- Copy and Paste options for an Animation Property value are disabled in the Right click contextual menu
- Asset is not found when searching the Label "NewLabel" in Search Window
- "Compute dispatch: missing texture ID..." and "Compute dispatch: missing UAV ID..." warnings are thrown after changing the platform in High Definition 3D template
Resolution Note (2019.3.X):
Currently the Shortcut Manager does not allow Global shortcuts (no context) to execute if the Game View is selected while Playing and NOT paused. This is to guarantee old behavior.
MenuItem shortcuts, however, always execute; this being the only potential workaround I can see at the moment. https://docs.unity3d.com/ScriptReference/MenuItem.html