Navigation
API > API/Runtime > API/Runtime/MRMesh
The MeshTrackerComponent class manages requests for environmental mesh data, processes the results and provides them to the calling system. The calling system is able request environmental mesh data within a specified area. Various other search criteria can be set via this class's public properties. Mesh data requests are processed on a separate thread. Once a mesh data request has been processed the calling system will be notified via an FOnMeshTrackerUpdated broadcast.
| Name | UMockDataMeshTrackerComponent |
| Type | class |
| Header File | /Engine/Source/Runtime/MRMesh/Public/MockDataMeshTrackerComponent.h |
| Include Path | #include "MockDataMeshTrackerComponent.h" |
Syntax
UCLASS (ClassGroup=Rendering, BlueprintType, Blueprintable, EditInlineNew,
Meta=(BlueprintSpawnableComponent), MinimalAPI)
class UMockDataMeshTrackerComponent : public USceneComponent
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → USceneComponent → UMockDataMeshTrackerComponent
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UMockDataMeshTrackerComponent
(
const FObjectInitializer& ObjectInitializer |
MockDataMeshTrackerComponent.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~UMockDataMeshTrackerComponent() |
Destroys the FMeshTrackerImpl instance. | MockDataMeshTrackerComponent.h |
Classes
| Name | Remarks |
|---|---|
| FOnMockDataMeshTrackerUpdated | Delegate used by OnMeshUpdated(). |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BlockVertexColors | TArray< FColor > | Colors through which we cycle when setting vertex color by block. | MockDataMeshTrackerComponent.h |
|
| MRMesh | TObjectPtr< class UMRMeshComponent > | MRMeshComponent can render and provide collision based on the Mesh data. | MockDataMeshTrackerComponent.h |
|
| OnMeshTrackerUpdated | FOnMockDataMeshTrackerUpdated | Activated whenever new information about this mesh tracker is detected. | MockDataMeshTrackerComponent.h |
|
| RequestNormals | bool | If true, the system will generate normals for the triangle vertices. | MockDataMeshTrackerComponent.h |
|
| RequestVertexConfidence | bool | If true, the system will generate the mesh confidence values for the triangle vertices. | MockDataMeshTrackerComponent.h |
|
| ScanWorld | bool | Set to true to start scanning the world for meshes. | MockDataMeshTrackerComponent.h |
|
| UpdateInterval | float | Update Interval in Seconds. | MockDataMeshTrackerComponent.h |
|
| VertexColorFromConfidenceOne | FLinearColor | Color mapped to confidence value of one. | MockDataMeshTrackerComponent.h |
|
| VertexColorFromConfidenceZero | FLinearColor | Color mapped to confidence value of zero. | MockDataMeshTrackerComponent.h |
|
| VertexColorMode | EMeshTrackerVertexColorMode | Vertex Colors can be unused, or filled with several types of information. | MockDataMeshTrackerComponent.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CurrentTime | float | MockDataMeshTrackerComponent.h | ||
| Impl | FMockDataMeshTrackerImpl * | MockDataMeshTrackerComponent.h | ||
| LastUpdateTime | float | MockDataMeshTrackerComponent.h | ||
| NumBlocks | int32 | MockDataMeshTrackerComponent.h | ||
| UpdateCount | int32 | MockDataMeshTrackerComponent.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void BeginDestroy() |
Unlinks the current procedural mesh component from the mesh tracking system. | MockDataMeshTrackerComponent.h | |
void ConnectMRMesh
(
UMRMeshComponent* InMRMeshPtr |
Sets the procedural mesh component that will store and display the environmental mesh results. | MockDataMeshTrackerComponent.h |
|
void DisconnectMRMesh
(
UMRMeshComponent* InMRMeshPtr |
Unlinks the current procedural mesh component from the mesh tracking system. | MockDataMeshTrackerComponent.h |
|
virtual void FinishDestroy() |
Destroys the interface object to the mesh tracking api | MockDataMeshTrackerComponent.h | |
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& e |
MockDataMeshTrackerComponent.h | ||
virtual void TickComponent
(
float DeltaTime, |
The procedural mesh generated should bake physics and update its collision data. | MockDataMeshTrackerComponent.h |