What is the Navigation Button Action Switcher?

The navigation bar is a very common interface in games, which provides users with a series of operation prompts that can be triggered by pressing the relevant buttons when navigating a menu, thus significantly simplifying the interaction between the keyboard/game controller and the interface.

1. Add Navigation KeyActionSwitcher

Untitled

To add a navigation action switcher, simply drag WBP_KeyActionSiwtcher into the WidgetTree and perform a simple configuration.

In its properties column, there is a property called UIActions, which is under the UI System category:

Untitled

You can add the list of actions you want here, and then in 2. NavigationWidget_Main , you can use the OnCustomActionTriggered overload to trigger the actions configured here.

Untitled

For the buttons corresponding to the actions in the UIActions list, you can configure them in Edit→Project Settings→Game→Advanced UI System page:

Untitled

For the key icon style of WBP_KeyActionSwitcher you can change it in DT_UIKeyIcons.

Untitled

Two styles configuration examples:

Untitled