Hi all, I am using the new unity input system. I want UI button navigation only with the arrow keys and not with ‘WASD’ aswell.

I have already deleted the ‘arrow input actions’ from the ‘WASD’ Input asset so the player wont move while pressing the arrow keys so i can navigate the UI buttons with the arrows. See below Picture

Now I want to disable the navigation on UI Buttons while pressing the 'WASD" keys only keeping the arrow navigation. Please Help. Thanks!

To be quite clear, you want to move your player using WASD and select UI button using the arrow keys. Is that right?

Have you selected the UI Action Map on the left hand side and gone to Navigate > Keyboard and removed the WASD mappings from that? If not then you should, I believe…

OK. I have an answer for you, though it took me an age to find it.

If you click on the EventSystem in your hierarchy, you will see the “Input System UI Input Module (Script)” component. This is a Unity written script that manages the Input System UI controls. It is there that you need to point to your customised Input Actions Asset. Unless you override this, it uses the default Asset set and not any that you might have created or modified for general purpose.

If you’re adapting the default Asset set, you will have two action maps: Player and UI. Change the Player to remove the arrow keys. Change the UI to remove the WASD keys. Then select this customised Asset set for the “Actions Asset” field in the “Input System UI Input Module (Script)” component I mentioned above.

When I did this, I was no longer able to move between buttons using the WASD keys. Hope I’ve given you enough details. This was quite a detective hunt but sometimes, you’ve just got to crack a problem…