unreal.WidgetInteractionSource

class unreal.WidgetInteractionSource

Bases: EnumBase

The interaction source for the widget interaction component, e.g. where do we try and trace from to try to find a widget under a virtual pointer device.

C++ Source:

  • Module: UMG

  • File: WidgetInteractionComponent.h

CENTER_SCREEN: WidgetInteractionSource

Sends trace from the center of the first local player’s screen.

Type:

2

CUSTOM: WidgetInteractionSource

Sends traces from a custom location determined by the user. Will use whatever FHitResult is set by the call to SetCustomHitResult.

Type:

3

MOUSE: WidgetInteractionSource

Sends traces from the mouse location of the first local player controller.

Type:

1

WORLD: WidgetInteractionSource

Sends traces from the world location and orientation of the interaction component.

Type:

0