unreal.OpenXRInputFunctionLibrary

class unreal.OpenXRInputFunctionLibrary(outer: Object | None = None, name: Name | str = 'None')

Bases: BlueprintFunctionLibrary

Open XRInput Function Library

C++ Source:

  • Plugin: OpenXR

  • Module: OpenXRInput

  • File: OpenXRInputFunctionLibrary.h

classmethod begin_xr_session(input_mapping_contexts) bool

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.

Parameters:

input_mapping_contexts (Set[InputMappingContext]) – The set of input mapping contexts used for XR

Returns:

False if the input mapping contexts can’t be attached to the session, true otherwise

Return type:

bool

classmethod end_xr_session() None

End XRSession