Can't select buttons with a controller

I have my controller set up, all the buttons are assigned in the Project Settings/Input, but pushing the analog stick and pressing buttons on my controller doesn’t select anything in my pause menu etc. Even using the arrow keys on my keyboard doesn’t select anything either; it only responds to my mouse.

I’ve even tried just assigning the d-pad, but it doesn’t register that either.

Do movement keys and controller buttons need to be coded now instead of them working straight away?

Looks like I’ve figured it out on my own (as usual). But I’ll post what the problem was for my own future reference or if anyone else has a similar issue.

I figured that because Horizontal and Vertical were already assigned in the Project Settings > Input, that they would work straight away. Turns out I was supposed to drop the button I wanted selected first in the First Selected box under the EventSystem.

2 Likes

Have you figured out if there’s a way to have it continuously use the arrow keys when transitioning menus?

For example, I have a main menu that has a option button. When I press on the option button it disables the main menu and shows the options menu. But now I’m back to square one where I can’t select anything with my arrow keys.

I haven’t implemented option menus before, sorry. I’ve only done a main menu and a pause menu. I’d suggest following Brackey’s tutorial:

I actually went through all his menu content. He never talks about this issue though :confused:

Hmm… Have you tried adding the first button to be selected via the Event System?

Yes, thanks to your comment, I was able to find out that problem. But it deactivates my controller input so I can’t select my buttons in the options. It works with my mouse though, so I know my buttons are working. The way I set up my menu is very similar to Brackey’s tutorial on menus.

I’ll have to see about setting up an options menu for my own project and see if I come across the same problem. At the moment though, I’m busy trying to fix some other bugs. :slight_smile:

Looks like my controller is no longer selecting buttons again, despite thinking I had it figured out. :frowning:

I’ve noticed on Play, under the EventSystem, that no BaseInput script appears.