ImportUtils

Choose your operating system:

Windows

macOS

Linux

Classes

Name

Description

Public struct

FExistingLODMeshData

LOD data to copy over.

Public struct

FExistingMeshLodSectionData

Public struct

FExistingSkelMeshData

Public struct

FExistingStaticMeshData

Public struct

FSkeletalMeshLodImportDataBackup

Public struct

FSkelMeshExtraInfluenceImportData

Data needed for importing an extra set of vertex influences

Public class

FSkelMeshOptionalImportData

Optional data passed in when importing a skeletal mesh LDO

Functions

Name Description

Public function

void

 

SkeletalMeshImportUtils::ApplySkinning

(
    USkeletalMesh* SkeletalMesh,
    FSkeletalMeshLODModel& SrcLODModel,
    FSkeletalMeshLODModel& DestLODMode...
)

Public function

void

 

SkeletalMeshImportUtils::ProcessImportMeshInfluences

(
    FSkeletalMeshImportData& ImportDat...,
    const FString& SkeletalMeshName
)

Process and update the vertex Influences using the raw binary import data

Public function

void

 

SkeletalMeshImportUtils::ProcessImportMeshMaterials

(
    TArray< FSkeletalMaterial >& Mater...,
    FSkeletalMeshImportData& ImportDat...
)

Process and fill in the mesh Materials using the raw binary import data

Public function

bool

 

SkeletalMeshImportUtils::ProcessImportMeshSkeleton

(
    const USkeleton* SkeletonAsset,
    FReferenceSkeleton& RefSkeleton,
    int32& SkeletalDepth,
    FSkeletalMeshImportData& ImportDat...
)

Process and fill in the mesh ref skeleton bone hierarchy using the raw binary import data

Public function

void

 

SkeletalMeshImportUtils::RestoreExistingSkelMeshData

(
    const TSharedPtr< const FExistingSk...,
    USkeletalMesh* SkeletalMesh,
    int32 ReimportLODIndex,
    bool bCanShowDialog,
    bool bImportSkinningOnly,
    bool bForceMaterialReset
)

Restore a backed up FExistingSkelMeshData into a SkeletalMesh asset

Public function

TSharedPtr< ...

 

SkeletalMeshImportUtils::SaveExistingSkelMeshData

(
    USkeletalMesh* SourceSkeletalM...,
    bool bSaveMaterials,
    int32 ReimportLODIndex
)

Backups the given SkeletalMesh into a FExistingSkelMeshData

Public function

bool

 

StaticMeshImportUtils::AddBoxGeomFromTris

(
    const TArray< FPoly >& Tris,
    FKAggregateGeom* AggGeom,
    const TCHAR* ObjName
)

Function for adding a box collision primitive to the supplied collision geometry based on the mesh of the box.

Public function

bool

 

StaticMeshImportUtils::AddCapsuleGeomFromVerts

(
    const TArray< FVector3f >& Verts,
    FKAggregateGeom* AggGeom,
    const TCHAR* ObjName
)

Public function

bool

 

StaticMeshImportUtils::AddConvexGeomFromVertices

(
    const TArray< FVector3f >& Verts,
    FKAggregateGeom* AggGeom,
    const TCHAR* ObjName
)

Utility for adding one convex hull from the given verts

Public function

bool

 

StaticMeshImportUtils::AddSphereGeomFromVerts

(
    const TArray< FVector3f >& Verts,
    FKAggregateGeom* AggGeom,
    const TCHAR* ObjName
)

Function for adding a sphere collision primitive to the supplied collision geometry based on a set of Verts.

Public function

bool

 

StaticMeshImportUtils::DecomposeUCXMesh

(
    const TArray< FVector3f >& Collisi...,
    const TArray< int32 >& CollisionFa...,
    UBodySetup* BodySetup
)

Public function

void

 

StaticMeshImportUtils::RestoreExistingMeshData

(
    const TSharedPtr< const FExistingSt...,
    UStaticMesh* NewMesh,
    int32 LodLevel,
    bool bCanShowDialog,
    bool bForceConflictingMaterialReset
)

Public function

void

 

StaticMeshImportUtils::RestoreExistingMeshSettings

(
    const FExistingStaticMeshData*...,
    UStaticMesh* NewMesh,
    int32 LODIndex
)

This function is call before building the mesh when we do a re-import

Public function

TSharedPtr< ...

 

StaticMeshImportUtils::SaveExistingStaticMeshData

(
    UStaticMesh* ExistingMesh,
    UnFbx::FBXImportOptions* Impor...,
    int32 LodIndex
)

Public function

void

 

StaticMeshImportUtils::UpdateSomeLodsImportMeshData

(
    UStaticMesh* NewMesh,
    TArray< int32 >* ReimportLodLi...
)