Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/Drawing > API/Plugins/ModelingComponents/Drawing/UMeshElementsVisualizer
References
| Module | ModelingComponents |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Drawing/MeshElementsVisualizer.h |
| Include | #include "Drawing/MeshElementsVisualizer.h" |
| Source | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Private/Drawing/MeshElementsVisualizer.cpp |
SetMeshAccessFunction&40;&41;
Remarks
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); });