IMeshUtilities::FlattenMaterialsWithMeshData

FlattenMaterialsWithMeshData

Windows
MacOS
Linux

References

Module

MeshUtilities

Header

/Engine/Source/Developer/MeshUtilities/Public/MeshUtilities.h

Include

#include "MeshUtilities.h"

Syntax

void FlattenMaterialsWithMeshData
(
    TArray< UMaterialInterface * > & InMaterials,
    TArray< struct FRawMeshExt > & InSourceMeshes,
    TMap< FMeshIdAndLOD, TArray< int32 >> & InMaterialIndexMap,
    TArray< bool > & InMeshShouldBakeVertexData,
    const FMaterialProxySettings & InMaterialProxySettings,
    TArray< FFlattenMaterial > & OutFlattenedMaterials
) const

Remarks

FlattenMaterialsWithMeshData

Parameters

Parameter

Description

InMaterials

List of unique materials used by InSourceMeshes

InSourceMeshes

List of raw meshes used to flatten the materials with (vertex data)

InMaterialIndexMap

Map used for mapping the raw meshes to the correct materials

InMeshShouldBakeVertexData

Array of flags to determine whether or not a mesh requires to have its vertex data baked down

InMaterialProxySettings

Settings for creating the flattened material

OutFlattenedMaterials

List of flattened materials (one for each mesh)

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