UUserWidget::OnMotionDetected

Called when motion is detected (controller or device) e.g. Someone tilts or shakes their controller.

Windows
MacOS
Linux

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Blueprint/UserWidget.h

Include

#include "Blueprint/UserWidget.h"

Syntax

FEventReply OnMotionDetected
(
    FGeometry MyGeometry,
    FMotionEvent InMotionEvent
)

Remarks

Called when motion is detected (controller or device) e.g. Someone tilts or shakes their controller.

Parameters

Parameter

Description

MyGeometry

The geometry of the widget receiving the event.

MotionEvent

The motion event generated

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss