Menu Buttons not working

Hi, I have my buttons on clicked and set input mode UI only but none of them work so I am missing something but don’t know what so I need a new set of eyes to tell me what is missing.

A few things to check:

  • Do you have another viewport widget on top of the one you are trying to press buttons for?
  • Is there another Hit-testable element on top of your buttons?
  • Are you seeing any errors?
  • I am unsure if this matters since you seem to be using Mouse, but is your widget focusable?

Each button is focusable and are set to true. I have a win screen widget but that is hidden and the death screen has a blur back ground so nothing else is really showing. I only have text on top of the buttons that are centered so I don’t think that is the issue. I am also not getting any errors that I can see.

You could try to use Widget Reflector: Using the Slate Widget Reflector in Unreal Engine | Unreal Engine 5.3 Documentation | Epic Developer Community to see the whole UI chain. It should show you widget elements that you are hovering over, so if there is an invisible, but clickable box, you will be able to see it.

When setting input mode UI pass in the widget with the buttons as “in widget to focus”. Right now you are not setting the focus for any specific widget.

So I figured out what was happening for some reason there is a delay to when the button is active so I can’t click it as soon as the menu pops up. Is there a way to fix that?

I know it is late but I found out that my buttons were behind effects so I changed the z order to 1 so there is no delay on the buttons.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.