TexturePaintHelpers::FindMaterialIndicesUsingTexture

Tries to find Materials using the given Texture and retrieve the corresponding material indices from the MEsh Compon

Unreal Engine C++ API Reference > Editor > MeshPaint > TexturePaintHelpers

References

   
Module MeshPaint
Header /Engine/Source/Editor/MeshPaint/Public/TexturePaintHelpers.h
Include #include "TexturePaintHelpers.h"
Source /Engine/Source/Editor/MeshPaint/Private/TexturePaintHelpers.cpp
static void FindMaterialIndicesUsingTexture
(
    const [UTexture](API\Runtime\Engine\Engine\UTexture) * Texture,
    const [UMeshComponent](API\Runtime\Engine\Components\UMeshComponent) * MeshComponent,
    [TArray](API\Runtime\Core\Containers\TArray)< int32 > & OutIndices
)

Remarks

Tries to find Materials using the given Texture and retrieve the corresponding material indices from the MEsh Compon


Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library