FLODUtilities::AdjustImportDataFaceMaterialIndex

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.

Windows
MacOS
Linux

References

Module

SkeletalMeshUtilitiesCommon

Header

/Engine/Source/Developer/SkeletalMeshUtilitiesCommon/Public/LODUtilities.h

Include

#include "LODUtilities.h"

Source

/Engine/Source/Developer/SkeletalMeshUtilitiesCommon/Private/LODUtilities.cpp

Syntax

static void AdjustImportDataFaceMaterialIndex
(
    const TArray< FSkeletalMaterial > & Materials,
    TArray< SkeletalMeshImportData::FMaterial > & RawMeshMaterials,
    TArray< SkeletalMeshImportData::FMeshFace > & LODFaces,
    int32 LODIndex
)

Remarks

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.

Parameters

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

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