FLODUtilities

Windows
MacOS
Linux

References

Module

SkeletalMeshUtilitiesCommon

Header

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

Include

#include "LODUtilities.h"

Syntax

class FLODUtilities

Constructors

No constructors are accessible with public or protected access.

Functions

Name Description

Public function Static

void

 

BuildMorphTargets

(
    USkeletalMesh* SkeletalMesh,
    FSkeletalMeshImportData& ImportDat...,
    int32 LODIndex,
    bool ShouldImportNormals,
    bool ShouldImportTangents,
    bool bUseMikkTSpace,
    const FOverlappingThresholds& Thre...
)

Build the morph targets for the specified LOD.

Public function Static

void

 

ProcessImportMeshInfluences

(
    const int32 WedgeCount,
    TArray< SkeletalMeshImportData::FRa...
)

Process and update the vertex Influences using the predefined wedges

Public function Static

void

 

RefreshLODChange

(
    const USkeletalMesh* SkeletalM...
)

Refresh LOD Change

Public function Static

void

 

RegenerateAllImportSkinWeightProfileData

(
    FSkeletalMeshLODModel& LODModelDes...
)

Re-generate all (editor-only) skin weight profile, used whenever we rebuild the skeletal mesh data which could change the chunking and bone indices

Public function Static

void

 

RegenerateDependentLODs

(
    USkeletalMesh* SkeletalMesh,
    int32 LODIndex
)

Regenerate LOD that are dependent of LODIndex

Public function Static

bool

 

RegenerateLOD

(
    USkeletalMesh* SkeletalMesh,
    int32 NewLODCount,
    bool bRegenerateEvenIfImported,
    bool bGenerateBaseLOD
)

Regenerate LODs of the mesh

Public function Static

void

 

RemoveLOD

(
    FSkeletalMeshUpdateContext& Update...,
    int32 DesiredLOD
)

Removes a particular LOD from the SkeletalMesh.

Public function Static

void

 

RestoreClothingFromBackup

(
    USkeletalMesh* SkeletalMesh,
    TArray< ClothingAssetUtils::FClothi...
)

Public function Static

void

 

RestoreClothingFromBackup

(
    USkeletalMesh* SkeletalMesh,
    TArray< ClothingAssetUtils::FClothi...,
    const int32 LODIndex
)

Public function Static

void

 

RestoreSkeletalMeshLODImportedData

(
    USkeletalMesh* SkeletalMesh,
    int32 LodIndex
)

Restore the LOD imported model to the last imported data.

Public function Static

void

 

SimplifySkeletalMeshLOD

(
    FSkeletalMeshUpdateContext& Update...,
    int32 DesiredLOD,
    bool bRestoreClothing,
    FThreadSafeBool* OutNeedsPacka...
)

Simplifies the static mesh based upon various user settings for DesiredLOD.

Public function Static

void

 

UnbindClothingAndBackup

(
    USkeletalMesh* SkeletalMesh,
    TArray< ClothingAssetUtils::FClothi...
)

Public function Static

void

 

UnbindClothingAndBackup

(
    USkeletalMesh* SkeletalMesh,
    TArray< ClothingAssetUtils::FClothi...,
    const int32 LODIndex
)

Public function Static

bool

 

UpdateAlternateSkinWeights

(
    USkeletalMesh* SkeletalMeshDes...,
    const FName& ProfileNameDest,
    int32 LODIndexDest,
    FOverlappingThresholds OverlappingT...,
    bool ShouldImportNormals,
    bool ShouldImportTangents,
    bool bUseMikkTSpace,
    bool bComputeWeightedNormals
)

This function apply the skinning weights from the saved imported skinning weight data to the destination skeletal mesh.

Public function Static

bool

 

UpdateAlternateSkinWeights

(
    USkeletalMesh* SkeletalMeshDes...,
    const FName& ProfileNameDest,
    USkeletalMesh* SkeletalMeshSrc,
    int32 LODIndexDest,
    int32 LODIndexSrc,
    FOverlappingThresholds OverlappingT...,
    bool ShouldImportNormals,
    bool ShouldImportTangents,
    bool bUseMikkTSpace,
    bool bComputeWeightedNormals
)

This function apply the skinning weights from asource skeletal mesh to the destination skeletal mesh.

Public function Static

bool

 

UpdateAlternateSkinWeights

(
    FSkeletalMeshLODModel& LODModelDes...,
    FSkeletalMeshImportData& ImportDat...,
    const FString SkeletalMeshName,
    FReferenceSkeleton& RefSkeleton,
    const FName& ProfileNameDest,
    int32 LODIndexDest,
    FOverlappingThresholds OverlappingT...,
    bool ShouldImportNormals,
    bool ShouldImportTangents,
    bool bUseMikkTSpace,
    bool bComputeWeightedNormals
)

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