Hello, currently I am trying to learn the updated input system in Unity 2D but have been stopped very quickly by what I can only assume is a bug. All tutorials for the updated input system seem to agree that the process should go (in a basic 2D project ) project window> Create >Input Actions. Then open the IA editor, then add an action map, then an action, then a binding. I can create an Action map and Action with no issue, all tutorials and documentation point to the Action Type being ‘Value’ with ‘2DVector’ being the control type. After this, I add a binding and it should populate ‘Keyboard’ as an option, but it seems that I have everything except keyboard as an option. Tried troubleshooting thus far: adding Keyboard as a control scheme, checking package manager settings to make sure there is nothing in list of accepted devices. If the action type is set to button I seem to have keyboard as an option, but selecting value does not work. Even listening for the binding does not work with this config. Is this a bug or am I missing something huge? No documentation or people reporting the same issue, so this is my last chance before I give up on the modern input system. Can someone help?
Hi,
It seems you want to bind to a control type that’s a Vector2 but the Keyboard doesn’t have any, it only has buttons that return a “single” value (unless you want to build a composite binding). See Workflow Overview - Actions | Input System | 1.11.2
You can either change the action type to Button, or if you still want to use the Value type, you could select a Control Type like “Any”, “Digital”, “Analog”, and more.
Also, if you previously used the Input Manager (Input Legacy) there are some migration steps in the documentation as well: Migrating from the old Input Manager | Input System | 1.11.2
Moreover, out of the box, you can use project-wide actions asset which comes populated with a lot of basic actions, see Workflow Overview - Actions | Input System | 1.11.2
I hope this helps.
Hey there,
Thank you so much for the response. I am very much a beginner so I appreciate the help and patience. When I first create the project, the input asset created for me seems to have all of the bindings/actions ready for me, with keyboard being a supported device, and can be made to work. On making my own, it seems like every option except keyboard and mouse is available to me, is this unexpected behavior? If not, I’ll change title of post to try and help other newcomers starting on unity6 with current version of new input system package.