当前位置:网站首页>[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 .
边栏推荐
- 【华为机试真题详解】统计射击比赛成绩
- jdbc使用call调用存储过程报错
- 2022 half year summary
- Select knowledge points of structure
- [JVM] [Chapter 17] [garbage collector]
- nacos-高可用seata之TC搭建(02)
- 26file filter anonymous inner class and lambda optimization
- SQLite queries the maximum value and returns the whole row of data
- [QNX Hypervisor 2.2用户手册]6.3.3 使用共享内存(shmem)虚拟设备
- Golang -- TCP implements concurrency (server and client)
猜你喜欢
Codeforces Round #804 (Div. 2) Editorial(A-B)
Promise summary
趋势前沿 | 达摩院语音 AI 最新技术大全
pix2pix:使用条件对抗网络的图像到图像转换
Vulhub vulnerability recurrence 72_ uWSGI
【OSPF 和 ISIS 在多路访问网络中对掩码的要求】
Modbus protocol communication exception
nacos-高可用seata之TC搭建(02)
图数据库ONgDB Release v-1.0.3
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
随机推荐
Please wait while Jenkins is getting ready to work
Detailed summary of SQL injection
Modbus协议通信异常
C Advanced - data storage (Part 1)
【torch】|torch.nn.utils.clip_grad_norm_
C# AES对字符串进行加密
Golang -- TCP implements concurrency (server and client)
[detailed explanation of Huawei machine test] check whether there is a digital combination that meets the conditions
趋势前沿 | 达摩院语音 AI 最新技术大全
Nacos - TC Construction of High available seata (02)
Check the useful photo lossless magnification software on Apple computer
图数据库ONgDB Release v-1.0.3
2022半年总结
04. Project blog log
Yyds dry inventory SSH Remote Connection introduction
Jvxetable implant j-popup with slot
UCF(2022暑期团队赛一)
[effective Objective-C] - memory management
Vulhub vulnerability recurrence 68_ ThinkPHP
Web Security (VI) the use of session and the difference between session and cookie