FMeshVertexPainter::PaintVerticesLerpAlongAxis

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

Windows
MacOS
Linux

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

Syntax

static void PaintVerticesLerpAlongAxis
(
    UStaticMeshComponent * StaticMeshComponent,
    const FLinearColor & StartColor,
    const FLinearColor & EndColor,
    EVertexPaintAxis Axis,
    bool bConvertToSRGB
)

Remarks

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

Parameters

Parameter

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss