当前位置:网站首页>[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 .
边栏推荐
- Modbus protocol communication exception
- ARTS Week 25
- Selective parameters in MATLAB functions
- [cloud native] 3.1 kubernetes platform installation kubespher
- Fluent implements a loadingbutton with loading animation
- 【torch】|torch. nn. utils. clip_ grad_ norm_
- Summary of deep learning tuning tricks
- Game push: image / table /cv/nlp, multi-threaded start!
- UCF (summer team competition II)
- CUDA11.1在线安装
猜你喜欢

C Advanced - data storage (Part 1)

Yyds dry inventory SSH Remote Connection introduction
![[leetcode16] the sum of the nearest three numbers (double pointer)](/img/99/a167b0fe2962dd0b5fccd2d9280052.jpg)
[leetcode16] the sum of the nearest three numbers (double pointer)

Cuda11.1 online installation
![[cloud native] 3.1 kubernetes platform installation kubespher](/img/86/137a65a5b58bc32e596d2a330ca9fc.png)
[cloud native] 3.1 kubernetes platform installation kubespher

Notes, continuation, escape and other symbols

How to download GB files from Google cloud hard disk

Remember an error in MySQL: the user specified as a definer ('mysql.infoschema '@' localhost ') does not exist

02. Develop data storage of blog project

First acquaintance with CDN
随机推荐
Force buckle 1189 Maximum number of "balloons"
Self built DNS server, the client opens the web page slowly, the solution
28io stream, byte output stream writes multiple bytes
Mysql高级篇学习总结9:创建索引、删除索引、降序索引、隐藏索引
Quantitative description of ANC noise reduction
HAC cluster modifying administrator user password
浅谈镜头滤镜的类型及作用
UCF(暑期团队赛二)
03. Login of development blog project
ByteDance program yuan teaches you how to brush algorithm questions: I'm not afraid of the interviewer tearing the code
2022半年总结
【经验】UltralSO制作启动盘时报错:磁盘/映像容量太小
How to download GB files from Google cloud hard disk
JS quick start (II)
【OSPF 和 ISIS 在多路访问网络中对掩码的要求】
Codeless June event 2022 codeless Explorer conference will be held soon; AI enhanced codeless tool launched
Easy to understand I2C protocol
算法-- 爬楼梯(Kotlin)
Promotion hung up! The leader said it wasn't my poor skills
02. 开发博客项目之数据存储