Navigation
API > API/Plugins > API/Plugins/XRBase > API/Plugins/XRBase/UHeadMountedDisplayFunctionLibra-
References
| Module | XRBase |
| Header | /Engine/Plugins/Runtime/XRBase/Source/XRBase/Public/HeadMountedDisplayFunctionLibrary.h |
| Include | #include "HeadMountedDisplayFunctionLibrary.h" |
| Source | /Engine/Plugins/Runtime/XRBase/Source/XRBase/Private/HeadMountedDisplayFunctionLibrary.cpp |
UFUNCTION&40;BlueprintCallable, Category&61;"Input&124;XRTracking"&41;
static TArray< FXRDeviceId > EnumerateTrackedDevices
&40;
const FName SystemId,
EXRTrackedDeviceType DeviceType
&41;
Remarks
Cross XR-System query that will list all XR devices currently being tracked. A list of device identifiers matching the query. Use these to query and operate on the device (e.g. through GetDevicePose, AddDeviceVisualizationComponent, etc.)
Parameters
| Name | Description |
|---|---|
| SystemId | (Optional) Specifies an explicit system to poll devices from (use if you want only devices belonging to one explicit XR ecosystem, e.g. 'OculusHMD', or 'OpenXR') |
| DeviceType | Specifies the type of device to query for - defaults to 'Any' (meaning 'All'). |