Module |
|
Header |
/Engine/Source/Developer/MeshUtilities/Public/MeshUtilities.h |
Include |
#include "MeshUtilities.h" |
void FlattenMaterialsWithMeshData
(
TArray< UMaterialInterface * > & InMaterials,
TArray< struct FRawMeshExt > & InSourceMeshes,
TMap< FMeshIdAndLOD, TArray< int32 >> & InMaterialIndexMap,
TArray< bool > & InMeshShouldBakeVertexData,
const FMaterialProxySettings & InMaterialProxySettings,
TArray< FFlattenMaterial > & OutFlattenedMaterials
) const
FlattenMaterialsWithMeshData
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) |