Navigation
API > API/Plugins > API/Plugins/XRBase > API/Plugins/XRBase/UHeadMountedDisplayFunctionLibra-
Description
Hook up a delegate to get an OpenXR action event with action time. For a boolean input the the 'value' parameter of the delegate will be 1.0 for a press and 0.0 for a release. For an analog input the value's range is action and platform specific. Use in combination with GetControllerTransformForTime2 for potentially improved temporal transform precision and velocity data. "Left Grip" is an example of a valid ActionName. Note: this is likely to be replaced by native support for event times in the core input system at some time in the future.
| Name | SetXRTimedInputActionDelegate |
| Type | function |
| Header File | /Engine/Plugins/Runtime/XRBase/Source/XRBase/Public/HeadMountedDisplayFunctionLibrary.h |
| Include Path | #include "HeadMountedDisplayFunctionLibrary.h" |
| Source | /Engine/Plugins/Runtime/XRBase/Source/XRBase/Private/HeadMountedDisplayFunctionLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="Input|XRTracking")
static void SetXRTimedInputActionDelegate
(
const FName & ActionName,
const FXRTimedInputActionDelegate & InDelegate
)