MeshPaintHelpers::PickVertexColorFromTextureData

Helper function to retrieve vertex color from a [UTexture](API\Runtime\Engine\Engine\UTexture) given a UVCoordinate

Choose your operating system:

Windows

macOS

Linux

References

Module

MeshPaint

Header

/Engine/Source/Editor/MeshPaint/Public/MeshPaintHelpers.h

Include

#include "MeshPaintHelpers.h"

Source

/Engine/Source/Editor/MeshPaint/Private/MeshPaintHelpers.cpp

Syntax

static FColor PickVertexColorFromTextureData
(
    const uint8 * MipData,
    const FVector2D & UVCoordinate,
    const UTexture2D * Texture,
    const FColor ColorMask
)

Remarks

Helper function to retrieve vertex color from a UTexture given a UVCoordinate