ERROR: “ArgumentException: Input Button Submit is not setup.”
I get this error on my scene that has a UI Canvas and an EventSystem. Also, none of the UI buttons work anymore. I believe it links back specifically to the “Standalone Input Module” that exists on the EventSystem.
I did clear out all default axes in the InputManager. Does Unity’s UI system rely on the default “Submit” input to function correctly?
Your EventSystem relies on your InputManager to get Input yes.
Your “Standalone Input Module” located on your EventSystem has a few strings you can set in the inspector. These strings are by default “Horizontal”, “Vertical”, “Submit” and “Cancel”. And these names also exist by default in your Input Manager.
Horizontal and vertical are used to dispatch any Move events. Which Selectables (like buttons) use if the Navigation is set to anything other than ‘None’. (by default this is mapped to the arrow keys)
Submit is used for click events for buttons (by default you could do this wih both ‘enter’ and ‘space’)
I actually don’t know where Cancel is used for… But by default this is mapped to the escape key.
To fix it, make sure these events are linked to an existing input in your inputmanager. (You should make sure the strings in your Standalone Input Module match a name in the input manager).
Btw. All you need is to provide the Standalone Input Module with a valid name. It does not require keys to actually be mapped to the Input you specify, as long asit exist in the InputManager you are good to go. They’ll still function just fine when you click with the pointer. But due to your runtime error, the input module responsible for dispatching the pointer events just throws this exception before it gets to dispatching pointer events