当前位置:网站首页>[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 .
边栏推荐
- Cuda11.1 online installation
- 【华为机试真题详解】检查是否存在满足条件的数字组合
- 指針經典筆試題
- 59. Spiral matrix
- Configuration file converted from Excel to Lua
- [leetcode daily question] number of enclaves
- [detailed explanation of Huawei machine test] check whether there is a digital combination that meets the conditions
- 03. 开发博客项目之登录
- HAC集群修改管理员用户密码
- Tetris
猜你喜欢
随机推荐
Oracle query table index, unique constraint, field
Safe mode on Windows
Unity gets the width and height of Sprite
Vulhub vulnerability recurrence 71_ Unomi
Can the feelings of Xi'an version of "Coca Cola" and Bingfeng beverage rush for IPO continue?
Vulhub vulnerability recurrence 68_ ThinkPHP
Selective parameters in MATLAB functions
JDBC calls the stored procedure with call and reports an error
02. 开发博客项目之数据存储
[detailed explanation of Huawei machine test] check whether there is a digital combination that meets the conditions
Using stopwatch to count code time
Quantitative description of ANC noise reduction
Pointer classic written test questions
Cuda11.1 online installation
Modbus protocol communication exception
Vite configures the development environment and production environment
Mongodb basic knowledge summary
Easy to understand I2C protocol
Fluent implements a loadingbutton with loading animation
【OSPF 和 ISIS 在多路访问网络中对掩码的要求】