UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FMeshVertexPainter Class Reference

#include <MeshVertexPainter.h>

Static Public Member Functions

static ENGINE_API void PaintVerticesSingleColor (UStaticMeshComponent *StaticMeshComponent, const FLinearColor &FillColor, bool bConvertToSRGB=true)
 
static ENGINE_API void PaintVerticesLerpAlongAxis (UStaticMeshComponent *StaticMeshComponent, const FLinearColor &StartColor, const FLinearColor &EndColor, EVertexPaintAxis Axis, bool bConvertToSRGB=true)
 
static ENGINE_API void RemovePaintedVertices (UStaticMeshComponent *StaticMeshComponent)
 

Member Function Documentation

◆ PaintVerticesLerpAlongAxis()

void FMeshVertexPainter::PaintVerticesLerpAlongAxis ( UStaticMeshComponent *  StaticMeshComponent,
const FLinearColor StartColor,
const FLinearColor EndColor,
EVertexPaintAxis  Axis,
bool  bConvertToSRGB = true 
)
static

Paints vertex colors on a mesh component lerping from the start to the end color along the specified axis.

Parameters
StaticMeshComponentThe static mesh component to be painted
StartColorThe color to paint at the minimum bound
EndColorThe color to paint at the maximum bound
AxisThe mesh local space axis along which to lerp
bConvertToSRGBWhether the vertex color should be converted to sRGB.

◆ PaintVerticesSingleColor()

void FMeshVertexPainter::PaintVerticesSingleColor ( UStaticMeshComponent *  StaticMeshComponent,
const FLinearColor FillColor,
bool  bConvertToSRGB = true 
)
static

Paints a single vertex color to the given mesh component.

Parameters
StaticMeshComponentThe static mesh component to be painted
FillColorThe color to be applied.
bConvertToSRGBWhether the vertex color should be converted to sRGB.

◆ RemovePaintedVertices()

void FMeshVertexPainter::RemovePaintedVertices ( UStaticMeshComponent *  StaticMeshComponent)
static

Removes painted vertex colors from the given mesh component.

Parameters
StaticMeshComponentThe static mesh component to have its vertex colors removed

The documentation for this class was generated from the following files: