WidgetComponent
The UXT widget component is used to make UXT interaction work with Unreal Engine's own widget component.
Usage
Create your widget as normal:
- Create a widget class blueprint asset, and design your UI there.
- Create an actor and add a UE4 widget component.
- Set the widget class to your widget asset.
After doing this, you should be able to see your widget when you play in editor. However, you will not be able to interact with the widget using the simulated hands. Stop play in editor and add a UXT widget component to your actor:
This should be all the set up required. When you play in editor now, you should be able to use far interaction and poke to interact with the ui elements in your widget actor.
Behavior Details
The UXT widget component only supports far interaction and near poke, and not near grab. For this reason, some UI elements may not behave like their UXT counterparts. For example, the slider widget follows the poking finger, whereas the UXT pinch slider requires a grab for near interaction.