- Home /
New Input System 2019 and UI
I have integrated the new Unity Input system, using this Video https://www.youtube.com/watch?v=Gz0YcjXBJ3U. As I wanted to implement UI I did not manage to get the buttons to be interactible. I have the feeling that the new input system is not set up properly to work with the Unity UI. As I inspected the EventSystem GameObject, It displayed a warning that it is not set up to work with the new Input System and prompted me to fix it. I clicked on that and a new component was added with the InputActionsAsset assigned. This is what the Error looked like. It did not work after that still. And adding the UI part of the created default Input Asset to my other InputActionAsset, which already works in game did not do the trick as well. Now it looks like this I would heavily appreciate any help on this topic.
Answer by Fishrock123 · Feb 05, 2020 at 11:03 PM
I have recently run into this. It does work - try it in an empty project.
The problem is likely that you have more than one PlayerInput
script active while the UI is active, and one of those is grabbing the primary (even if it's the only) user's controls.
You can likely solve this by ensuing you set the "UI Input Module" in your PlayerInput
to your EventSystem
object (it will pick up the correct script), as well as ensuring that you only have one PlayerInput
active at any one time.
So what if I want to have split screen game with multiple Player Input objects?
There is docs on Split screen in InputSystem . Just google it
Answer by crawfis · Sep 30, 2021 at 12:52 PM
I ran into this problem in an empty scene with no input desired. Yes, you have to Add a PlayerInput component and then link the EventSystem to it for this error to go away. Alternatively, I think you can just disable the raycasting on your Canvas and Images.
Your answer
Follow this Question
Related Questions
How do I detect when UI events are triggered on *any object*? 1 Answer
each character doubled in inputfield in build but not editor on ubuntu 16.04 2 Answers
Gamepad menu navigation with uGUI not working as expected. 1 Answer
How to solve event triggers blocking scrollview inputs in an inventory/menu? 2 Answers