[UE5.4] Operating UI with a Gamepad
Create a "button widget that changes color when focused" and make those UIs operable with a gamepad
■ Creating a Button Widget




Event On Added to Focus Path and Event On Removed Focus Path can be added from "Overrides" in My Blueprint (they cannot be searched via right-click).
On Clicked(Button) can be added from the [Details Panel] -> [Events] by setting the button widget to [Is Variable✅].
"Click Event" Event Dispatcher is created anew from My Blueprint.
(We won't use this here, but by calling the event dispatcher on the child side, you can call that event on the parent WBP side)

Instance Editable ✅ (allows you to edit the value from the Details panel)


This links the text block with the contents of the variable
■ Creating a Widget for the Title Screen


(If placing a Widget BP, search for it in the palette search bar.)
Set all buttons to "Fill" to fill the gaps.

(This will not be reflected on this screen, but it will be reflected when the game is launched.)

(Setting to accept focus)
■ Displaying the widget

(It might be better to implement focus logic in the WBP.)

(I added a blue background.)

※ I want to remove the blue border when focused.
[Project Settings] -> [User Interface] -> Change [Focus Rendering Rule] to "Never"
*Cannot push only during the initial focus
Limiting the focus target to the WBP button widget instead of the entire WBP improves this
*The color changes even for the text
I don't know how to fix it
