Module |
|
Header |
/Engine/Source/Developer/SkeletalMeshUtilitiesCommon/Public/LODUtilities.h |
Include |
#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
)
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.
Parameter |
Description |
---|---|
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 |