当前位置:网站首页>[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 .
边栏推荐
- 29io stream, byte output stream continue write line feed
- [detailed explanation of Huawei machine test] check whether there is a digital combination that meets the conditions
- JS array list actual use summary
- jdbc使用call调用存储过程报错
- Detailed summary of SQL injection
- Qt TCP 分包粘包的解决方法
- Oracle query table index, unique constraint, field
- 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
- Solution of QT TCP packet sticking
- js Array 列表 实战使用总结
猜你喜欢
First acquaintance with CDN
【云原生】3.1 Kubernetes平台安装KubeSpher
04. Project blog log
01. Project introduction of blog development project
JS array list actual use summary
Pix2pix: image to image conversion using conditional countermeasure networks
Codeforces Round #804 (Div. 2) Editorial(A-B)
js Array 列表 实战使用总结
无代码六月大事件|2022无代码探索者大会即将召开;AI增强型无代码工具推出...
[JVM] [Chapter 17] [garbage collector]
随机推荐
Selective parameters in MATLAB functions
How to get list length
02. 开发博客项目之数据存储
Text classification still stays at Bert? The dual contrast learning framework is too strong
指針經典筆試題
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
February 12 relativelayout
Steady, 35K, byte business data analysis post
HAC集群修改管理员用户密码
[leetcode daily question] number of enclaves
Ora-01779: the column corresponding to the non key value saving table cannot be modified
Modbus协议通信异常
Vulhub vulnerability recurrence 69_ Tiki Wiki
MySQL advanced learning summary 9: create index, delete index, descending index, and hide index
Nacos - TC Construction of High available seata (02)
指针经典笔试题
Force buckle 1189 Maximum number of "balloons"
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
Easy to understand IIC protocol explanation
【经验】UltralSO制作启动盘时报错:磁盘/映像容量太小