Input for user interfaces
Wire the Input System to Unity UI so players can navigate menus, click buttons, and interact with on-screen widgets.
Choose a supported UI stack and UI Input Module, configure the built-in UI action map, and handle cases where gameplay and UI both receive input. Add virtual mice, multiplayer UI, or on-screen controls when your project needs them.
| Topic | Description |
|---|---|
| Supported UI systems | Compare uGUI, UI Toolkit, and IMGUI support and set up the UI Input Module. |
| Configure UI Input Actions | Edit bindings for the built-in UI action map in the Actions Editor. |
| Default UI Action Map reference | Look up Navigate, Submit, Point, Click, and other default UI actions. |
| Handling input target ambiguity | Route input between gameplay and UI when both are active. |
| Use a Virtual Mouse for UI cursor control | Drive uGUI pointer input from gamepads and joysticks with a virtual mouse. |
| Multiplayer UI input | Give each local player separate UI on a shared screen. |
| Create on-screen controls | Simulate device input with on-screen buttons, sticks, and custom controls. |