Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/UMeshElementsVisualizer
Description
UMeshElementsVisualizer needs access to a mesh to generate it's data structures. However we may not be able to (or shouldn't) directly pass a pointer to UMeshElementsVisualizer. For example a UDynamicMeshComponent can expose it's internal mesh via a function ProcessMesh( TFunctionRef
So for example usage with a Tool that has a DynamicMeshComponent could be as follows: MeshElementsVisualizer->SetMeshAccessFunction(this { DynamicMeshComponent->ProcessMesh(ProcessFunc); }); And for usage with a mesh that a Tool class owns: MeshElementsVisualizer->SetMeshAccessFunction(this { ProcessFunc(MyInternalMesh); });
| Name | SetMeshAccessFunction |
| Type | function |
| Header File | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Drawing/MeshElementsVisualizer.h |
| Include Path | #include "Drawing/MeshElementsVisualizer.h" |
| Source | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Private/Drawing/MeshElementsVisualizer.cpp |
void SetMeshAccessFunction
(
TUniqueFunction < void> && MeshAccessFunction
)