Module |
|
Header |
/Engine/Source/Runtime/HeadMountedDisplay/Public/XRAssetFunctionLibrary.h |
Include |
#include "XRAssetFunctionLibrary.h" |
Source |
/Engine/Source/Runtime/HeadMountedDisplay/Private/XRAssetFunctionLibrary.cpp |
static UPrimitiveComponent * AddDeviceVisualizationComponentBlocking
(
AActor * Target,
const FXRDeviceId & XRDeviceId,
bool bManualAttachment,
const FTransform & RelativeTransform
)
Spawns a render component for the specified XR device.
NOTE: The associated XR system backend has to provide a model for this to work - if one is not available for the specific device, then this will fail and return an invalid (null) object.
A new component representing the specified device (invalid/null if a model for the device doesn't exist).
Parameter |
Description |
---|---|
Target |
The intended owner for the component to attach to. |
XRDeviceId |
Specifies the device you're wanting a model for. |
bManualAttachment |
If set, will leave the component unattached (mirror's the same option on the generic AddComponent node). When unset the component will attach to the actor's root. |
RelativeTransform |
Specifies the component initial transform (relative to its attach parent). |