13
2018
Adding Multiple Submit Keys to Input Manager

Had to make an UI button clickable by multiple different keyboard keys (like enter, space, left/right shift etc.)
And almost started writing custom script to handle extra keys when selecting UI button..
but then realized that you can duplicate Input Manager keys, and sure enough it works!
(see image above, you can right click to duplicate, then set new keys to it)

—
For the button i attached this init script, to make it selected (and highlighted) at start.
(otherwise user needs to select it manually first, before can click it, with controller for example)
Related Posts
Leave a comment
Recent posts
- Editor Tool: Property Watcher
- .unityignore : Hide files from Project window
- PostBuild Script to Create Single exe Standalone File
- Game Loop Designer
- Favorites in PackageManager
- LudumDare59 : Signal
- Unity Editor: Tree Generator
- Leaf/Foliage Generator Tools (Runs in Browser)
- Testing Unity AI Beta
- Ways to Support UnityCoder Development
- Using UI Slider to Create 5-Star Rating Element
- Game Music Library For Unity (editor plugin)
Recent Comments
Coin:
CUgDSbRqFcAumDSAcdKDvuXsw26VdkJe8C8WGUQHBAGS
An article by











