Module |
|
Header |
/Engine/Source/Runtime/AugmentedReality/Public/ARComponent.h |
Include |
#include "ARComponent.h" |
class UARComponent : public USceneComponent
ARComponent handles replication and visualization update for AR tracked geometries ARComponent is created in either multiplayer or local only environment
To customize the visualization logic, override 'UpdateVisualization' in Blueprint or 'UpdateVisualization_Implementation' in C++
To customize the replication logic, disable 'bUseDefaultReplication' and implement your own replication logic when the ARComponent is updated (see how 'Update' is implemented in the sub classes)
A MRMeshComponent will be created if mesh visualization is enabled (see UARSessionConfig::bGenerateMeshDataFromTrackedGeometry) It can be accessed via 'GetMRMesh' or 'UARTrackedGeometry::GetUnderlyingMesh'
Name | Description | ||
---|---|---|---|
|
bFirstUpdate |
If this component has ever been updated |
|
|
bInDebugMode |
||
|
bIsRemoved |
If 'ReceiveRemove' has been called for this component |
|
|
bSavedWireframeMode |
||
|
bUseDefaultReplication |
If the default replication logic should be used for this component |
|
|
DefaultMeshMaterial |
The default material to be used for the generated mesh component. |
|
|
DefaultWireframeMeshMaterial |
The default wireframe material to be used for the generated mesh component. |
|
|
MRMeshComponent |
||
|
MyTrackedGeometry |
The tracked geometry used for updating this component, only set on "local" client |
|
|
NativeID |
||
|
OnMRMeshCreated |
||
|
OnMRMeshDestroyed |
||
|
SavedWireframeColor |
Name | Description | |
---|---|---|
|
UARComponent() |
Name | Description | ||
---|---|---|---|
|
GetDebugColor() |
||
|
UMRMeshCompo... |
GetMRMesh() |
|
|
ManageMeshComponentForDebugMode ( |
||
|
OnRep_Payload() |
||
|
ReceiveRemove() |
Event when native representation is removed, called on server and clients. |
|
|
Remove ( |
||
|
RemoveMeshComponent ( |
||
|
SetNativeID ( |
||
|
Update ( |
||
|
UpdateVisualization() |
Name | Description | ||
---|---|---|---|
|
OnUnregister() |
Called when a component is unregistered. |
Name |
Description |
---|---|
FMRMeshDelegate |