Navigation
API > API/Plugins > API/Plugins/OpenXRInput > API/Plugins/OpenXRInput/UOpenXRInputFunctionLibrary
Description
Begin an XR session with the provided input mapping. This will make the tracking system aware of the actions and bindings that are used for XR motion controllers. Attaching input configs to the session can only be done once, so this is a helper function to attach the input mapping contexts and start the XR session correctly.
| Name | BeginXRSession |
| Type | function |
| Header File | /Engine/Plugins/Runtime/OpenXR/Source/OpenXRInput/Public/OpenXRInputFunctionLibrary.h |
| Include Path | #include "OpenXRInputFunctionLibrary.h" |
| Source | /Engine/Plugins/Runtime/OpenXR/Source/OpenXRInput/Private/OpenXRInputFunctionLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="Input|XRTracking")
static bool BeginXRSession
(
const TSet< UInputMappingContext * > & InputMappingContexts
)
False if the input mapping contexts can't be attached to the session, true otherwise
Parameters
| Name | Remarks |
|---|---|
| InputMappingContexts | The set of input mapping contexts used for XR |