UMotionTrackedDeviceFunctionLibrary::EnableMotionTrackingOfDevice

Enable tracking of the specified controller, by player index and tracked device type.

Windows
MacOS
Linux

References

Module

HeadMountedDisplay

Header

/Engine/Source/Runtime/HeadMountedDisplay/Public/MotionTrackedDeviceFunctionLibrary.h

Include

#include "MotionTrackedDeviceFunctionLibrary.h"

Source

/Engine/Source/Runtime/HeadMountedDisplay/Private/MotionTrackedDeviceFunctionLibrary.cpp

Syntax

static bool EnableMotionTrackingOfDevice
(
    int32 PlayerIndex,
    EControllerHand Hand
)

Remarks

Enable tracking of the specified controller, by player index and tracked device type.

Returns

(Boolean) true if the specified device is now set to be tracked. This could fail due to tracking limits, or on invalid input.

Parameters

Parameter

Description

PlayerIndex

(in) The index of the player.

Hand

(in) The device type.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss