当前位置:网站首页>[imgui] unity MenuItem shortcut key
[imgui] unity MenuItem shortcut key
2022-07-06 05:34:00 【Endless】
stay Unity In development , You often need to add some custom editor scripts or commands , stay Unity Menu , For frequently used custom commands , It is troublesome to select with the mouse every time , That can add shortcut keys to improve efficiency .
The custom menu supports the following shortcut keys :
- % - CTRL on Windows / CMD on OSX
- ‘# - Shift’
- & -Alt
- LEFT/RIGHT/UP/DOWN - Arrow keys
- F1 … F2 - F keys
- HOME,END,PGUP,PGDN
Alphabet Key - _ + Letter ( Such as :_g Representative Key );
There are also several combinations .
Example :
[MenuItem("Tools/New Option %#a"]//CTRL-SHIFT-A
privte static void NewMenuOption(){
}
[MenuItem("Tools/Item %g")]//CTRL-G
private static void NewNestedOption(){
}
[MenuItem("Tools/Item2 _g")]//G
private static void NewOptionWithHotKey(){
}
Shortcut key conflict and modification
About the solution of shortcut key conflict or not used to the current shortcut key , Can open Unity Toolbar Edit->Shortcuts.
stay Shortcut Double click in the bar and select the shortcut you want to enter ( Just press the corresponding key ).
If there is a shortcut key conflict, you can select BindingConficts Modify the tab accordingly .
边栏推荐
- Implementing fuzzy query with dataframe
- Vulhub vulnerability recurrence 69_ Tiki Wiki
- flutter 实现一个有加载动画的按钮(loadingButton)
- 用StopWatch 统计代码耗时
- 【华为机试真题详解】检查是否存在满足条件的数字组合
- 移植InfoNES到STM32
- 01. 开发博客项目之项目介绍
- Using stopwatch to count code time
- Deep learning -yolov5 introduction to actual combat click data set training
- 应用安全系列之三十七:日志注入
猜你喜欢
[leetcode daily question] number of enclaves
Ad20 is set with through-hole direct connection copper sheet, and the bonding pad is cross connected
Nacos TC setup of highly available Seata (02)
[mask requirements of OSPF and Isis in multi access network]
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
01. 开发博客项目之项目介绍
JS array list actual use summary
03. Login of development blog project
Zoom and pan image in Photoshop 2022
Review of double pointer problems
随机推荐
Selective parameters in MATLAB functions
Promotion hung up! The leader said it wasn't my poor skills
[leetcode daily question] number of enclaves
Pickle and savez_ Compressed compressed volume comparison
flutter 实现一个有加载动画的按钮(loadingButton)
[JVM] [Chapter 17] [garbage collector]
[mask requirements of OSPF and Isis in multi access network]
C进阶-数据的存储(上)
Force buckle 1189 Maximum number of "balloons"
C AES encrypts strings
Self built DNS server, the client opens the web page slowly, the solution
【OSPF 和 ISIS 在多路访问网络中对掩码的要求】
MySQL advanced learning summary 9: create index, delete index, descending index, and hide index
February 12 relativelayout
【华为机试真题详解】统计射击比赛成绩
03. 开发博客项目之登录
04. Project blog log
毕业设计游戏商城
SQLite add index
C# AES对字符串进行加密