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
- UnityHub: Enable built-in Login Dialog (no more browser login/logout issues!)
- Use TikTok-TTS in Unity (with WebRequest)
- Create Scene Thumbnail Image using OnSceneSaved & OnPreviewGUI
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
- Custom Unity Hub Project Template Preview Image/Video (using HTML+CSS in package description)
- Check if point is inside polygon 2D (using line intersection)
- UnityHub: Enable Create Project Button (without having to select Cloud Organization)
- UI: Make Tooltip background fit Text content length
- Pong-Wars in Unity
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub)