Navigation
Unreal Engine C++ API Reference > Runtime > UMG > Slate > SObjectWidget
- SWidget::OnMotionDetected()
- SObjectWidget::OnMotionDetected()
References
Module | UMG |
Header | /Engine/Source/Runtime/UMG/Public/Slate/SObjectWidget.h |
Include | #include "Slate/SObjectWidget.h" |
Source | /Engine/Source/Runtime/UMG/Private/Slate/SObjectWidget.cpp |
virtual FReply OnMotionDetected
&40;
const FGeometry & MyGeometry,
const FMotionEvent & InMotionEvent
&41;
Remarks
Called when motion is detected (controller or device) e.g. Someone tilts or shakes their controller.
Parameters
Name | Description |
---|---|
InMotionEvent | The motion event generated |