Navigation
Unreal Engine C++ API Reference > Runtime > Engine > MeshVertexPainter > FMeshVertexPainter
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/MeshVertexPainter/MeshVertexPainter.h |
Include | #include "MeshVertexPainter/MeshVertexPainter.h" |
Source | /Engine/Source/Runtime/Engine/Private/MeshVertexPainter/MeshVertexPainter.cpp |
static void PaintVerticesLerpAlongAxis
&40;
UStaticMeshComponent &42; StaticMeshComponent,
const FLinearColor & StartColor,
const FLinearColor & EndColor,
EVertexPaintAxis Axis,
bool bConvertToSRGB
&41;
Remarks
Paints vertex colors on a mesh component lerping from the start to the end color along the specified axis.
Parameters
Name | Description |
---|---|
StaticMeshComponent | The static mesh component to be painted |
StartColor | The color to paint at the minimum bound |
EndColor | The color to paint at the maximum bound |
Axis | The mesh local space axis along which to lerp |
bConvertToSRGB | Whether the vertex color should be converted to sRGB. |