Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Blueprint > API/Runtime/UMG/Blueprint/UUserWidget
References
| Module | UMG |
| Header | /Engine/Source/Runtime/UMG/Public/Blueprint/UserWidget.h |
| Include | #include "Blueprint/UserWidget.h" |
UFUNCTION (BlueprintImplementableEvent, BlueprintCosmetic, Category="Touch Input")
FEventReply OnMotionDetected
(
FGeometry MyGeometry,
FMotionEvent InMotionEvent
)
Remarks
Called when motion is detected (controller or device) e.g. Someone tilts or shakes their controller.
Parameters
| Name | Description |
|---|---|
| MyGeometry | The geometry of the widget receiving the event. |
| MotionEvent | The motion event generated |