/Engine/Plugins/MeshPainting/Source/MeshPaintingToolset/Public/TexturePaintToolset.h
Tries to find Materials using the given Texture and retrieve the corresponding material indices from the MEsh Compon
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 )