Module |
|
Header |
/Engine/Source/Runtime/HeadMountedDisplay/Public/IXRSystemAssets.h |
Include |
#include "IXRSystemAssets.h" |
int32 GetDeviceId
(
EControllerHand ControllerHand
)
Provides a mapping for MotionControllers, so we can identify the device ID used for a specific hand (which in turn can be used in other functions, like CreateRenderComponent, etc.).
NOTE: Some systems will not have an explicit mapping until the device is on and registered. In that case, this function will return an invalid device ID.
NOTE: Not all XR systems support every EControllerHand value. If that's the case, then this will return an invalid device ID, though that specific value is undetermined and up to each XRSystem for interpretation.
A device ID that is specific to this XRSystem (can only be interpreted by other members belonging to the same IXRSystemIdentifier)
Parameter |
Description |
---|---|
ControllerHand |
The UE specific hand identifier you want a system specific device ID for. |