Navigation
API > API/Developer > API/Developer/SkeletalMeshUtilitiesCommon > API/Developer/SkeletalMeshUtilitiesCommon/FLODUtilities
Description
Before building skeletalmesh base LOD (LOD index 0) using MeshUtilities.BuildSkeletalMesh, we want to adjust the imported faces material index to point on the correct sk material. We use the material name to match the material.
| Name | AdjustImportDataFaceMaterialIndex |
| Type | function |
| Header File | /Engine/Source/Developer/SkeletalMeshUtilitiesCommon/Public/LODUtilities.h |
| Include Path | #include "LODUtilities.h" |
| Source | /Engine/Source/Developer/SkeletalMeshUtilitiesCommon/Private/LODUtilities.cpp |
static void AdjustImportDataFaceMaterialIndex
(
const TArray< FSkeletalMaterial > & Materials,
TArray< SkeletalMeshImportData::FMaterial > & RawMeshMaterials,
TArray< SkeletalMeshImportData::FMeshFace > & LODFaces,
int32 LODIndex
)
Parameters
| Name | Remarks |
|---|---|
| Materials | The skeletalmesh material list to fit the import data face material |
| RawMeshMaterials | The import data material list |
| LODFaces | The face to adjust with the material remap |
| LODIndex | We can adjust only the base LOD (LODIndex 0), the function will not do anything if LODIndex is not 0 |