Navigation
API > API/Runtime > API/Runtime/GeometryFramework > API/Runtime/GeometryFramework/UDynamicMeshComponent
Description
Support for Vertex Color remapping/filtering. This allows external code to modulate the existing Vertex Colors on the rendered mesh. The remapping is only applied to FVector4f Color Overlay attribute buffers. The lambda that is passed is held for the lifetime of the Component and must remain valid. If the Vertex Colors are modified, FastNotifyColorsUpdated() can be used to do the minimal vertex buffer updates necessary in the RenderProxy Set an active VertexColor Remapping function if one exists, and update the mesh
| Name | SetVertexColorRemappingFunction |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryFramework/Public/Components/DynamicMeshComponent.h |
| Include Path | #include "Components/DynamicMeshComponent.h" |
| Source | /Engine/Source/Runtime/GeometryFramework/Private/Components/DynamicMeshComponent.cpp |
virtual void SetVertexColorRemappingFunction
(
TUniqueFunction < void> ColorMapFuncIn,
EDynamicMeshComponentRenderUpdateMode UpdateMode
)