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

 

AdjustImportDataFaceMaterialIndex

(
    const TArray< FSkeletalMaterial >&...,
    TArray< SkeletalMeshImportData::FMa...,
    TArray< SkeletalMeshImportData::FMe...,
    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.

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...,
    const FString& MeshName
)

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,
    const ITargetPlatform* TargetP...
)

Regenerate LOD that are dependent of LODIndex

Public function Static

bool

 

RegenerateLOD

(
    USkeletalMesh* SkeletalMesh,
    const ITargetPlatform* TargetP...,
    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

 

RemoveLODs

(
    FSkeletalMeshUpdateContext& Update...,
    const TArray< int32 >& DesiredLODs
)

Removes the specified LODs from the SkeletalMesh.

Public function Static

void

 

RestoreClothingFromBackup

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

Public function Static

void

 

RestoreClothingFromBackup

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

Public function Static

bool

 

RestoreSkeletalMeshLODImportedData

(
    USkeletalMesh* SkeletalMesh,
    int32 LodIndex
)

Restore the LOD imported model to the last imported data.

Public function Static

void

 

SimplifySkeletalMeshLOD

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

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

Public function Static

bool

 

StripLODGeometry

(
    USkeletalMesh* SkeletalMesh,
    const int32 LODIndex,
    UTexture2D* TextureMask,
    const float Threshold
)

This function will strip all triangle in the specified LOD that don't have any UV area pointing on a black pixel in the TextureMask.

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,
    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

(
    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

(
    FSkeletalMeshLODModel& LODModelDes...,
    FSkeletalMeshImportData& ImportDat...,
    USkeletalMesh* SkeletalMeshDes...,
    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