Choose your operating system:
Windows
macOS
Linux
| ISlateViewport::OnMotionDetected()
|
Module |
|
Header |
/Engine/Source/Runtime/Engine/Public/Slate/SceneViewport.h |
Include |
#include "Slate/SceneViewport.h" |
Source |
/Engine/Source/Runtime/Engine/Private/Slate/SceneViewport.cpp |
virtual FReply OnMotionDetected
(
const FGeometry & MyGeometry,
const FMotionEvent & InMotionEvent
)
Called when motion is detected (controller or device) e.g. Someone tilts or shakes their controller.
Parameter |
Description |
---|---|
InMotionEvent |
The motion event generated |