UI /Menu/Interface

Interactive Widget for VR & API widget


For Http function in API Widget:


To connect http external link on a button:
Activate the http blueprint plugin:
image.png
Create a Widget call API Widget. In the widget graph:
image.png
image.png

For Interactive UI with Enhanced Input action setting:


Create 3 things: Input Mapping Context, Input Action, and Blueprint class Player Controller:

Input Mapping Context:
image.png

Input Action:
Create following Data Asset Input Action, called ia_UI_Select_item
image.png
Add follow Press and Tap triggers:
image.png

PlayerController:
Name as UI Controller:
image.png

In Widget Component in 3D menu BP, untick Receive Hardware Input
image.png

Add Widget Interaction component on the same spot as Widget component
Set Interaction Source as Mouse
image.png

In the 3D menu event graph, add follow in graph:
image.png
image.png

Reminder:
In the BP 3D Menu, the defautSceneRoot, Widget Interaction and Widget should align (same pivot spot). Or else, the red debug dot ?(from Widget Interaction) will not be shown.
Check if they all align by draging the BP menu in the scene, top view + perspective view
image.png
image.png
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.