![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <MockDataMeshTrackerComponent.h>
Inheritance diagram for UMockDataMeshTrackerComponent:Public Member Functions | |
| MRMESH_API | ~UMockDataMeshTrackerComponent () |
| MRMESH_API void | ConnectMRMesh (class UMRMeshComponent *InMRMeshPtr) |
| MRMESH_API void | DisconnectMRMesh (class UMRMeshComponent *InMRMeshPtr) |
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_FiveParams (FOnMockDataMeshTrackerUpdated, int32, Index, const TArray< FVector > &, Vertices, const TArray< int32 > &, Triangles, const TArray< FVector > &, Normals, const TArray< float > &, Confidence) | |
| virtual MRMESH_API void | TickComponent (float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override |
| virtual MRMESH_API void | BeginDestroy () override |
| virtual MRMESH_API void | FinishDestroy () override |
Public Attributes | |
| FOnMockDataMeshTrackerUpdated | OnMeshTrackerUpdated |
| bool | ScanWorld = true |
| bool | RequestNormals = true |
| bool | RequestVertexConfidence = false |
| EMeshTrackerVertexColorMode | VertexColorMode = EMeshTrackerVertexColorMode::None |
| TArray< FColor > | BlockVertexColors |
| FLinearColor | VertexColorFromConfidenceZero |
| FLinearColor | VertexColorFromConfidenceOne |
| float | UpdateInterval = 3.0f |
| TObjectPtr< class UMRMeshComponent > | 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.
| UMockDataMeshTrackerComponent::~UMockDataMeshTrackerComponent | ( | ) |
Destroys the FMeshTrackerImpl instance.
|
overridevirtual |
Unlinks the current procedural mesh component from the mesh tracking system.
| void UMockDataMeshTrackerComponent::ConnectMRMesh | ( | class UMRMeshComponent * | InMRMeshPtr | ) |
Sets the procedural mesh component that will store and display the environmental mesh results.
| InMRMeshPtr | The procedural mesh component to store the query result in. |
| UMockDataMeshTrackerComponent::DECLARE_DYNAMIC_MULTICAST_DELEGATE_FiveParams | ( | FOnMockDataMeshTrackerUpdated | , |
| int32 | , | ||
| Index | , | ||
| const TArray< FVector > & | , | ||
| Vertices | , | ||
| const TArray< int32 > & | , | ||
| Triangles | , | ||
| const TArray< FVector > & | , | ||
| Normals | , | ||
| const TArray< float > & | , | ||
| Confidence | |||
| ) |
Delegate used by OnMeshUpdated().
| Index | The index of the mesh section in the ProceduralMeshComponent that was updated. |
| Vertices | List of all vertices in the updated mesh section. |
| Triangles | List of all triangles in the updated mesh section. |
| Normals | List of the normals of all triangles in the updated mesh section. |
| Confidence | List of the confidence values per vertex in the updated mesh section. This can be used to determine if the user needs to scan more. |
| void UMockDataMeshTrackerComponent::DisconnectMRMesh | ( | class UMRMeshComponent * | InMRMeshPtr | ) |
Unlinks the current procedural mesh component from the mesh tracking system.
| InMRMeshPtr | The procedural mesh component to unlink from the mesh tracking system. |
|
overridevirtual |
Destroys the interface object to the mesh tracking api
|
overridevirtual |
The procedural mesh generated should bake physics and update its collision data. TODO: Can we calculate this based on the collision flags of the UProceduralMeshComponent? It seems like those are not being respected directly by the component. Polls for and handles the results of the environmental mesh queries.
Colors through which we cycle when setting vertex color by block.
| TObjectPtr<class UMRMeshComponent> UMockDataMeshTrackerComponent::MRMesh |
MRMeshComponent can render and provide collision based on the Mesh data.
| FOnMockDataMeshTrackerUpdated UMockDataMeshTrackerComponent::OnMeshTrackerUpdated |
Activated whenever new information about this mesh tracker is detected.
If true, the system will generate normals for the triangle vertices.
If true, the system will generate the mesh confidence values for the triangle vertices. These confidence values can be used to determine if the user needs to scan more.
Set to true to start scanning the world for meshes.
| float UMockDataMeshTrackerComponent::UpdateInterval = 3.0f |
Update Interval in Seconds.
| FLinearColor UMockDataMeshTrackerComponent::VertexColorFromConfidenceOne |
Color mapped to confidence value of one.
| FLinearColor UMockDataMeshTrackerComponent::VertexColorFromConfidenceZero |
Color mapped to confidence value of zero.
| EMeshTrackerVertexColorMode UMockDataMeshTrackerComponent::VertexColorMode = EMeshTrackerVertexColorMode::None |
Vertex Colors can be unused, or filled with several types of information.