- Home /
Mapping Function Keys to Menuitem
Is it possible to map the function keys to an MenuItem in the Unity Editor? I tried the following, and it somewhat seemed to work. However, it causes the static method to be triggered when both the F5 and 5 keys are pressed.
[MenuItem("Test/Do Stuff _F5", true)]
My guess is that it's either not supported, or the syntax is different for the function keys.
Comment
Answer by RichTufty · May 21, 2014 at 11:34 AM
Looks like this is now supported, works for me: https://docs.unity3d.com/Documentation/ScriptReference/MenuItem.html
Your answer
Follow this Question
Related Questions
GUI, character selection & general menu 1 Answer
Are there any tutorials for items action menu ? 1 Answer
Editor Menu Item open Window 2 Answers
How can I change color in GUI text? I have problem 1 Answer
menu item and add gadjet 1 Answer