Navigation
API > API/Plugins > API/Plugins/XRBase
Inheritance Hierarchy
- UStaticMeshComponent
- UXRDeviceVisualizationComponent
References
| Module | XRBase |
| Header | /Engine/Plugins/Runtime/XRBase/Source/XRBase/Public/XRDeviceVisualizationComponent.h |
| Include | #include "XRDeviceVisualizationComponent.h" |
Syntax
UCLASS (Blueprintable, Meta=(BlueprintSpawnableComponent), ClassGroup=MotionController)
class UXRDeviceVisualizationComponent : public UStaticMeshComponent
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsRenderingActive | Set by the parent MotionController once tracking kicks in. | |
| bool | bIsVisualizationActive | Whether the visualization offered by this component is being used. | |
| TObjectPtr< UStaticMesh > | CustomDisplayMesh | A mesh override that'll be displayed attached to this MotionController. | |
| FXRDeviceId | DisplayDeviceId | ||
| TArray< TObjectPtr< UMaterialInterface > > | DisplayMeshMaterialOverrides | Material overrides for the specified display mesh. | |
| EModelLoadStatus | DisplayModelLoadState | ||
| FName | DisplayModelSource | Determines the source of the desired model. | |
| FName | MotionSource |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UXRDeviceVisualizationComponent
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | Whether this component can be displayed, depending on whether the parent MotionController has activated its rendering. | ||
| UMotionControllerComponent * | |||
| void | |||
| void | OnDisplayModelLoaded
(
UPrimitiveComponent* DisplayComponent |
Callback for asynchronous display model loads (to set materials, etc.) | |
| void | OnRegister () |
||
| void | OnUnregister () |
||
| void | RefreshMesh () |
||
| void | SetCustomDisplayMesh
(
UStaticMesh* NewDisplayMesh |
||
| void | SetDisplayModelSource
(
const FName NewDisplayModelSource |
||
| void | SetIsRenderingActive
(
bool bRenderingIsActive |
||
| void | SetIsVisualizationActive
(
bool bNewVisualizationState |
||
| void | SetMaterials
(
int32 MatCount |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EModelLoadStatus |
Constants
| Name | Description |
|---|---|
| CustomModelSourceId |