UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FGeometryCollectionEngineConversion Class Reference

#include <GeometryCollectionEngineConversion.h>

Classes

struct  FSkeletalMeshToCollectionConversionParameters
 

Static Public Member Functions

static GEOMETRYCOLLECTIONENGINE_API int32 AppendMaterials (const TArray< UMaterialInterface * > &Materials, UGeometryCollection *GeometryCollectionObject, bool bAddInteriorCopy)
 
static GEOMETRYCOLLECTIONENGINE_API void AppendAutoInstanceMeshIndices (UGeometryCollection *GeometryCollectionObject, int32 FromTransformIndex, const UStaticMesh *StaticMesh, const TArray< UMaterialInterface * > &Materials)
 
static GEOMETRYCOLLECTIONENGINE_API void AppendMeshDescription (const FMeshDescription *MeshDescription, const FString &Name, int32 StartMaterialIndex, const FTransform &StaticMeshTransform, FGeometryCollection *GeometryCollection, UBodySetup *BodySetup=nullptr, bool bReindexMaterials=true, bool bAddInternalMaterials=true, bool bSetInternalFromMaterialIndex=false)
 
static GEOMETRYCOLLECTIONENGINE_API FMeshDescriptionGetMaxResMeshDescriptionWithNormalsAndTangents (const UStaticMesh *StaticMesh)
 
static GEOMETRYCOLLECTIONENGINE_API bool AppendStaticMesh (const UStaticMesh *StaticMesh, const TArray< UMaterialInterface * > &Materials, const FTransform &StaticMeshTransform, UGeometryCollection *GeometryCollectionObject, bool bReindexMaterials=true, bool bAddInternalMaterials=true, bool bSplitComponents=false, bool bSetInternalFromMaterialIndex=false)
 
static GEOMETRYCOLLECTIONENGINE_API bool AppendStaticMesh (const UStaticMesh *StaticMesh, int32 StartMaterialIndex, const FTransform &StaticMeshTransform, FGeometryCollection *GeometryCollection, bool bReindexMaterials=true, bool bAddInternalMaterials=true, bool bSplitComponents=false, bool bSetInternalFromMaterialIndex=false)
 
static GEOMETRYCOLLECTIONENGINE_API void AppendStaticMesh (const UStaticMesh *StaticMesh, const UStaticMeshComponent *StaticMeshComponent, const FTransform &StaticMeshTransform, UGeometryCollection *GeometryCollection, bool bReindexMaterials=true, bool bAddInternalMaterials=true, bool bSplitComponents=false, bool bSetInternalFromMaterialIndex=false)
 
static GEOMETRYCOLLECTIONENGINE_API void AppendSkeletalMesh (const USkeletalMesh *SkeletalMesh, const USkeletalMeshComponent *SkeletalMeshComponent, const FTransform &SkeletalMeshTransform, UGeometryCollection *GeometryCollection, bool bReindexMaterials=true)
 
static GEOMETRYCOLLECTIONENGINE_API bool AppendSkeletalMesh (const USkeletalMesh *SkeletalMesh, int32 MaterialStartIndex, const FTransform &SkeletalMeshTransform, FManagedArrayCollection *InCollection, bool bReindexMaterials=true, bool bImportTransformOnly=false)
 
static GEOMETRYCOLLECTIONENGINE_API void AppendSkeleton (const USkeleton *Skeleton, const FTransform &SkeletalMeshTransform, FManagedArrayCollection *InCollection)
 
static GEOMETRYCOLLECTIONENGINE_API int32 AppendSkeletalMeshMaterials (const USkeletalMesh *SkeletalMesh, const USkeletalMeshComponent *SkeletalMeshComponent, UGeometryCollection *GeometryCollectionObject)
 
static GEOMETRYCOLLECTIONENGINE_API const FSkeletalMeshLODRenderDataGetSkeletalMeshLOD (const USkeletalMesh *SkeletalMesh, int32 LOD)
 
static GEOMETRYCOLLECTIONENGINE_API int32 AppendGeometryCollectionMaterials (const UGeometryCollection *SourceGeometryCollection, const UGeometryCollectionComponent *GeometryCollectionComponent, UGeometryCollection *TargetGeometryCollectionObject)
 
static GEOMETRYCOLLECTIONENGINE_API void AppendGeometryCollectionInstancedMeshes (const UGeometryCollection *SourceGeometryCollectionObject, UGeometryCollection *TargetGeometryCollectionObject, int32 TargetTransformStartIndex)
 
static GEOMETRYCOLLECTIONENGINE_API bool AppendGeometryCollection (const FGeometryCollection *SourceGeometryCollection, int32 MaterialStartIndex, const FTransform &GeometryCollectionTransform, FGeometryCollection *TargetGeometryCollection, bool bReindexMaterials=true)
 
static GEOMETRYCOLLECTIONENGINE_API void AppendGeometryCollection (const UGeometryCollection *SourceGeometryCollection, const TArray< UMaterialInterface * > &Materials, const FTransform &GeometryCollectionTransform, UGeometryCollection *TargetGeometryCollectionObject, bool ReindexMaterials=true)
 
static GEOMETRYCOLLECTIONENGINE_API void AppendGeometryCollection (const UGeometryCollection *SourceGeometryCollection, const UGeometryCollectionComponent *GeometryCollectionComponent, const FTransform &GeometryCollectionTransform, UGeometryCollection *TargetGeometryCollectionObject, bool ReindexMaterials=true)
 
static GEOMETRYCOLLECTIONENGINE_API void AppendGeometryCollectionSource (const FGeometryCollectionSource &GeometryCollectionSource, FGeometryCollection &GeometryCollectionInOut, TArray< UMaterial * > &MaterialsInOut, bool ReindexMaterials=true)
 
static GEOMETRYCOLLECTIONENGINE_API void AppendGeometryCollectionSource (const FGeometryCollectionSource &GeometryCollectionSource, FGeometryCollection &GeometryCollectionInOut, TArray< UMaterialInterface * > &MaterialInstancesInOut, bool ReindexMaterials=true)
 
static GEOMETRYCOLLECTIONENGINE_API void ConvertStaticMeshToGeometryCollection (const TObjectPtr< UStaticMesh > StaticMesh, FManagedArrayCollection &OutCollection, TArray< TObjectPtr< UMaterial > > &OutMaterials, TArray< FGeometryCollectionAutoInstanceMesh > &OutInstancedMeshes, bool bSetInternalFromMaterialIndex=true, bool bSplitComponents=false)
 
static GEOMETRYCOLLECTIONENGINE_API void ConvertStaticMeshToGeometryCollection (const TObjectPtr< UStaticMesh > StaticMesh, FManagedArrayCollection &OutCollection, TArray< TObjectPtr< UMaterialInterface > > &OutMaterialInstances, TArray< FGeometryCollectionAutoInstanceMesh > &OutInstancedMeshes, bool bSetInternalFromMaterialIndex=true, bool bSplitComponents=false)
 
static GEOMETRYCOLLECTIONENGINE_API void ConvertStaticMeshToGeometryCollection (const TObjectPtr< UStaticMesh > StaticMesh, const FTransform &MeshTransform, FManagedArrayCollection &OutCollection, TArray< TObjectPtr< UMaterialInterface > > &OutMaterialInstances, TArray< FGeometryCollectionAutoInstanceMesh > &OutInstancedMeshes, bool bSetInternalFromMaterialIndex=true, bool bSplitComponents=false)
 
static GEOMETRYCOLLECTIONENGINE_API void ConvertGeometryCollectionToGeometryCollection (const TObjectPtr< UGeometryCollection > InGeometryCollectionAssetPtr, FManagedArrayCollection &OutCollection, TArray< TObjectPtr< UMaterial > > &OutMaterials, TArray< FGeometryCollectionAutoInstanceMesh > &OutInstancedMeshes)
 
static GEOMETRYCOLLECTIONENGINE_API void ConvertGeometryCollectionToGeometryCollection (const TObjectPtr< UGeometryCollection > InGeometryCollectionAssetPtr, FManagedArrayCollection &OutCollection, TArray< TObjectPtr< UMaterialInterface > > &OutMaterialInstances, TArray< FGeometryCollectionAutoInstanceMesh > &OutInstancedMeshes)
 
static GEOMETRYCOLLECTIONENGINE_API void ConvertActorToGeometryCollection (const AActor *Actor, FManagedArrayCollection &OutCollection, TArray< TObjectPtr< UMaterial > > &OutMaterials, TArray< FGeometryCollectionAutoInstanceMesh > &OutInstancedMeshes, const FSkeletalMeshToCollectionConversionParameters &ConversionParameters, bool bSplitComponents=false)
 
static GEOMETRYCOLLECTIONENGINE_API void ConvertActorToGeometryCollection (const AActor *Actor, FManagedArrayCollection &OutCollection, TArray< TObjectPtr< UMaterialInterface > > &OutMaterialInstances, TArray< FGeometryCollectionAutoInstanceMesh > &OutInstancedMeshes, const FSkeletalMeshToCollectionConversionParameters &ConversionParameters, bool bSplitComponents=false)
 
static GEOMETRYCOLLECTIONENGINE_API void ConvertCollectionToSkeleton (const FManagedArrayCollection &InCollection, USkeleton *OutSkeleton, TArray< int32 > &OutIndexRemap, bool bCenterBonesOnGeometry=false)
 
static GEOMETRYCOLLECTIONENGINE_API void ConvertCollectionToSkeletalMesh (const FManagedArrayCollection &InCollection, const TArray< TObjectPtr< UMaterialInterface > > InMaterials, USkeletalMesh &OutSkeletalMesh, USkeleton &OutSkeleton)
 
static GEOMETRYCOLLECTIONENGINE_API void GetMaterialsFromInstances (const TArray< TObjectPtr< UMaterialInterface > > &MaterialInstances, TArray< TObjectPtr< UMaterial > > &OutMaterials)
 

Detailed Description

The public interface to this module

Member Function Documentation

◆ AppendAutoInstanceMeshIndices()

void FGeometryCollectionEngineConversion::AppendAutoInstanceMeshIndices ( UGeometryCollection GeometryCollectionObject,
int32  FromTransformIndex,
const UStaticMesh StaticMesh,
const TArray< UMaterialInterface * > &  Materials 
)
static

Appends instanced mesh indices

Parameters
GeometryCollectionObjectgeometry collection to add to
FromTransformIndextransform index to start from
StaticMeshstatic mesh to add reference to
Materialsmaterials corresponding to the static mesh instance to get the index from

◆ AppendGeometryCollection() [1/3]

bool FGeometryCollectionEngineConversion::AppendGeometryCollection ( const FGeometryCollection SourceGeometryCollection,
int32  MaterialStartIndex,
const FTransform GeometryCollectionTransform,
FGeometryCollection TargetGeometryCollection,
bool  bReindexMaterials = true 
)
static

Appends a GeometryCollection to another GeometryCollection.

Parameters
SourceGeometryCollection: Const GeometryCollection to read vertex/normals/index data from
MaterialStartIndex: First index of materials to use
GeometryCollectionTransform: GeometryCollection transform.
TargetGeometryCollection: Collection to append the GeometryCollection into.
bReindexMaterials: Whether to reindex materials – if appending multiple meshes, pass false and call ReindexMaterials afterwards
Returns
true if succeeded in appending a geometry collection

◆ AppendGeometryCollection() [2/3]

void FGeometryCollectionEngineConversion::AppendGeometryCollection ( const UGeometryCollection SourceGeometryCollection,
const TArray< UMaterialInterface * > &  Materials,
const FTransform GeometryCollectionTransform,
UGeometryCollection TargetGeometryCollectionObject,
bool  ReindexMaterials = true 
)
static

Appends a GeometryCollection to a GeometryCollectionComponent.

Parameters
SourceGeometryCollection: Const GeometryCollection to read vertex/normals/index data from
Materials: Materials fetched from the GeometryCollectionComponent used to configure this geometry
GeometryCollectionTransform: GeometryCollection transform.
TargetGeometryCollection: Collection to append the GeometryCollection into.

◆ AppendGeometryCollection() [3/3]

void FGeometryCollectionEngineConversion::AppendGeometryCollection ( const UGeometryCollection SourceGeometryCollection,
const UGeometryCollectionComponent GeometryCollectionComponent,
const FTransform GeometryCollectionTransform,
UGeometryCollection TargetGeometryCollectionObject,
bool  ReindexMaterials = true 
)
static

Appends a GeometryCollection to a GeometryCollectionComponent.

Parameters
GeometryCollectionComponent: Const GeometryCollection to read vertex/normals/index data from
GeometryCollectionTransform: GeometryCollection transform.
TargetGeometryCollection: Collection to append the GeometryCollection into.

◆ AppendGeometryCollectionInstancedMeshes()

void FGeometryCollectionEngineConversion::AppendGeometryCollectionInstancedMeshes ( const UGeometryCollection SourceGeometryCollectionObject,
UGeometryCollection TargetGeometryCollectionObject,
int32  TargetTransformStartIndex 
)
static

◆ AppendGeometryCollectionMaterials()

int32 FGeometryCollectionEngineConversion::AppendGeometryCollectionMaterials ( const UGeometryCollection SourceGeometryCollection,
const UGeometryCollectionComponent GeometryCollectionComponent,
UGeometryCollection TargetGeometryCollectionObject 
)
static

◆ AppendGeometryCollectionSource() [1/2]

void FGeometryCollectionEngineConversion::AppendGeometryCollectionSource ( const FGeometryCollectionSource GeometryCollectionSource,
FGeometryCollection GeometryCollectionInOut,
TArray< UMaterial * > &  MaterialsInOut,
bool  ReindexMaterials = true 
)
static

Appends a GeometryCollectionSource to a GeometryCollection

Parameters
GeometryCollectionSource: geometry collection source object ( from UGeometryCollection collection asset )
GeometryCollectionInOut: GeometryCollection to append to
MaterialsInOut: array of materials to append to

◆ AppendGeometryCollectionSource() [2/2]

void FGeometryCollectionEngineConversion::AppendGeometryCollectionSource ( const FGeometryCollectionSource GeometryCollectionSource,
FGeometryCollection GeometryCollectionInOut,
TArray< UMaterialInterface * > &  MaterialInstancesInOut,
bool  ReindexMaterials = true 
)
static

◆ AppendMaterials()

int32 FGeometryCollectionEngineConversion::AppendMaterials ( const TArray< UMaterialInterface * > &  Materials,
UGeometryCollection GeometryCollectionObject,
bool  bAddInteriorCopy 
)
static

Appends materials to a GeometryCollectionComponent.

Parameters
Materials: Materials fetched from the StaticMeshComponent used to configure this geometry
GeometryCollection: Collection to append the mesh into.

◆ AppendMeshDescription()

void FGeometryCollectionEngineConversion::AppendMeshDescription ( const FMeshDescription MeshDescription,
const FString &  Name,
int32  StartMaterialIndex,
const FTransform StaticMeshTransform,
FGeometryCollection GeometryCollection,
UBodySetup BodySetup = nullptr,
bool  bReindexMaterials = true,
bool  bAddInternalMaterials = true,
bool  bSetInternalFromMaterialIndex = false 
)
static

Appends a MeshDescription to a GeometryCollection.

Parameters
MeshDescription: Const mesh description to read vertex/normals/index data from
Name: A name to use for the Mesh, e.g. from the source UObject's GetName()
StartMaterialIndex: Index of materials to be used, e.g. as returned by AppendMaterials() (see below)
StaticMeshTransform: Mesh transform.
GeometryCollection: Collection to append the mesh into.
BodySetup: Optional collision setup to transfer to the geometry collection
bReindexMaterials: Whether to reindex materials – if appending multiple meshes, pass false and call ReindexMaterials afterwards

◆ AppendSkeletalMesh() [1/2]

void FGeometryCollectionEngineConversion::AppendSkeletalMesh ( const USkeletalMesh SkeletalMesh,
const USkeletalMeshComponent *  SkeletalMeshComponent,
const FTransform SkeletalMeshTransform,
UGeometryCollection GeometryCollection,
bool  bReindexMaterials = true 
)
static

Appends a skeletal mesh to a GeometryCollectionComponent.

Parameters
SkeletalMeshComponent: Const mesh to read vertex/normals/index data from
SkeletalMeshTransform: Mesh transform.
GeometryCollection: Collection to append the mesh into.

◆ AppendSkeletalMesh() [2/2]

bool FGeometryCollectionEngineConversion::AppendSkeletalMesh ( const USkeletalMesh SkeletalMesh,
int32  MaterialStartIndex,
const FTransform SkeletalMeshTransform,
FManagedArrayCollection InCollection,
bool  bReindexMaterials = true,
bool  bImportTransformOnly = false 
)
static

Appends a skeletal mesh to a GeometryCollection.

Parameters
SkeletalMesh: Const mesh to read vertex/normals/index data from
MaterialStartIndex: First index of materials to use, as returned by AppendSkeletalMeshMaterials
SkeletalMeshTransform: Mesh transform.
GeometryCollection: Collection to append the mesh into.

◆ AppendSkeletalMeshMaterials()

int32 FGeometryCollectionEngineConversion::AppendSkeletalMeshMaterials ( const USkeletalMesh SkeletalMesh,
const USkeletalMeshComponent *  SkeletalMeshComponent,
UGeometryCollection GeometryCollectionObject 
)
static

Appends a skeletal mesh to a GeometryCollectionComponent.

Parameters
SkeletalMeshComponent: Const mesh to read vertex/normals/index data from
SkeletalMeshTransform: Mesh transform.
GeometryCollection: Collection to append the mesh into.

◆ AppendSkeleton()

void FGeometryCollectionEngineConversion::AppendSkeleton ( const USkeleton Skeleton,
const FTransform SkeletalMeshTransform,
FManagedArrayCollection InCollection 
)
static

Appends a skeleton mesh to a GeometryCollection.

Parameters
USkeleton: Const mesh to read vertex/normals/index data from
SkeletalMeshTransform: Mesh transform.
GeometryCollection: Collection to append the mesh into.

◆ AppendStaticMesh() [1/3]

bool FGeometryCollectionEngineConversion::AppendStaticMesh ( const UStaticMesh StaticMesh,
const TArray< UMaterialInterface * > &  Materials,
const FTransform StaticMeshTransform,
UGeometryCollection GeometryCollectionObject,
bool  bReindexMaterials = true,
bool  bAddInternalMaterials = true,
bool  bSplitComponents = false,
bool  bSetInternalFromMaterialIndex = false 
)
static

Appends a static mesh to a GeometryCollectionComponent.

Parameters
StaticMesh: Const mesh to read vertex/normals/index data from
Materials: Materials fetched from the StaticMeshComponent used to configure this geometry
StaticMeshTransform: Mesh transform.
GeometryCollection: Collection to append the mesh into.
bReindexMaterials: Whether to reindex materials – if appending multiple meshes, pass false and call ReindexMaterials afterwards
Returns
true if succeeded in appending a mesh

◆ AppendStaticMesh() [2/3]

void FGeometryCollectionEngineConversion::AppendStaticMesh ( const UStaticMesh StaticMesh,
const UStaticMeshComponent *  StaticMeshComponent,
const FTransform StaticMeshTransform,
UGeometryCollection GeometryCollection,
bool  bReindexMaterials = true,
bool  bAddInternalMaterials = true,
bool  bSplitComponents = false,
bool  bSetInternalFromMaterialIndex = false 
)
static

Appends a static mesh to a GeometryCollectionComponent.

Parameters
StaticMeshComponent: Const mesh to read vertex/normals/index data from
StaticMeshTransform: Mesh transform.
GeometryCollection: Collection to append the mesh into.

◆ AppendStaticMesh() [3/3]

bool FGeometryCollectionEngineConversion::AppendStaticMesh ( const UStaticMesh StaticMesh,
int32  StartMaterialIndex,
const FTransform StaticMeshTransform,
FGeometryCollection GeometryCollection,
bool  bReindexMaterials = true,
bool  bAddInternalMaterials = true,
bool  bSplitComponents = false,
bool  bSetInternalFromMaterialIndex = false 
)
static

Appends a static mesh to a GeometryCollectionComponent.

Parameters
StaticMesh: Const mesh to read vertex/normals/index data from
StartMaterialIndex: Index of materials to be used, e.g. as returned by AppendMaterials() (see below)
StaticMeshTransform: Mesh transform.
GeometryCollection: Collection to append the mesh into.
bReindexMaterials: Whether to reindex materials – if appending multiple meshes, pass false and call ReindexMaterials afterwards
Returns
true if succeeded in appending a mesh

◆ ConvertActorToGeometryCollection() [1/2]

void FGeometryCollectionEngineConversion::ConvertActorToGeometryCollection ( const AActor Actor,
FManagedArrayCollection OutCollection,
TArray< TObjectPtr< UMaterial > > &  OutMaterials,
TArray< FGeometryCollectionAutoInstanceMesh > &  OutInstancedMeshes,
const FSkeletalMeshToCollectionConversionParameters ConversionParameters,
bool  bSplitComponents = false 
)
static

Converts an actor to an FManagedArrayCollection, and arrays of materials and instanced meshes

Parameters
Actor: actor input to convert
OutCollection: FGeometryCollection output
OutMaterials: Materials from the UGeometryCollection
OutInstancedMeshes: InstancedMeshes
bSplitComponents: Split the components

◆ ConvertActorToGeometryCollection() [2/2]

void FGeometryCollectionEngineConversion::ConvertActorToGeometryCollection ( const AActor Actor,
FManagedArrayCollection OutCollection,
TArray< TObjectPtr< UMaterialInterface > > &  OutMaterialInstances,
TArray< FGeometryCollectionAutoInstanceMesh > &  OutInstancedMeshes,
const FSkeletalMeshToCollectionConversionParameters ConversionParameters,
bool  bSplitComponents = false 
)
static

◆ ConvertCollectionToSkeletalMesh()

void FGeometryCollectionEngineConversion::ConvertCollectionToSkeletalMesh ( const FManagedArrayCollection InCollection,
const TArray< TObjectPtr< UMaterialInterface > >  InMaterials,
USkeletalMesh OutSkeletalMesh,
USkeleton OutSkeleton 
)
static

Converts a Geometry collection to a SkeletalMesh

Parameters
InCollectionGeometry collection to convert to a skeletal mesh
OutSkeletalMesh: skeletal mesh asset to export to
OutSkeleton: Skeleton asset to export the bone hierarchy to

◆ ConvertCollectionToSkeleton()

void FGeometryCollectionEngineConversion::ConvertCollectionToSkeleton ( const FManagedArrayCollection InCollection,
USkeleton OutSkeleton,
TArray< int32 > &  OutIndexRemap,
bool  bCenterBonesOnGeometry = false 
)
static

Converts an FManagedArrayCollection to a USkeleton

Parameters
InManagedArrayCollection: Collection that supports transform hierarchy
OutSkeleton: USkeleton to populate
OutIndexRemap: Remapping from Collection transforms to skeletal transforms.

◆ ConvertGeometryCollectionToGeometryCollection() [1/2]

void FGeometryCollectionEngineConversion::ConvertGeometryCollectionToGeometryCollection ( const TObjectPtr< UGeometryCollection InGeometryCollectionAssetPtr,
FManagedArrayCollection OutCollection,
TArray< TObjectPtr< UMaterial > > &  OutMaterials,
TArray< FGeometryCollectionAutoInstanceMesh > &  OutInstancedMeshes 
)
static

Converts a UGeometryCollection asset to an FManagedArrayCollection, and arrays of materials and instanced meshes

Parameters
GeometryCollection: UGeometryCollection input to convert
OutCollection: FGeometryCollection output
OutMaterials: Materials from the UGeometryCollection
OutInstancedMeshes: InstancedMeshes

◆ ConvertGeometryCollectionToGeometryCollection() [2/2]

void FGeometryCollectionEngineConversion::ConvertGeometryCollectionToGeometryCollection ( const TObjectPtr< UGeometryCollection InGeometryCollectionAssetPtr,
FManagedArrayCollection OutCollection,
TArray< TObjectPtr< UMaterialInterface > > &  OutMaterialInstances,
TArray< FGeometryCollectionAutoInstanceMesh > &  OutInstancedMeshes 
)
static

◆ ConvertStaticMeshToGeometryCollection() [1/3]

void FGeometryCollectionEngineConversion::ConvertStaticMeshToGeometryCollection ( const TObjectPtr< UStaticMesh StaticMesh,
const FTransform MeshTransform,
FManagedArrayCollection OutCollection,
TArray< TObjectPtr< UMaterialInterface > > &  OutMaterialInstances,
TArray< FGeometryCollectionAutoInstanceMesh > &  OutInstancedMeshes,
bool  bSetInternalFromMaterialIndex = true,
bool  bSplitComponents = false 
)
static

◆ ConvertStaticMeshToGeometryCollection() [2/3]

void FGeometryCollectionEngineConversion::ConvertStaticMeshToGeometryCollection ( const TObjectPtr< UStaticMesh StaticMesh,
FManagedArrayCollection OutCollection,
TArray< TObjectPtr< UMaterial > > &  OutMaterials,
TArray< FGeometryCollectionAutoInstanceMesh > &  OutInstancedMeshes,
bool  bSetInternalFromMaterialIndex = true,
bool  bSplitComponents = false 
)
static

Converts a StaticMesh to a GeometryCollection

Parameters
StaticMesh: Const mesh to read vertex/normals/index data from
OutCollection: FGeometryCollection output
OutMaterials: materials from the StaticMesh
OutInstancedMeshes: InstancedMeshes
bSetInternalFromMaterialIndex: Set the internal faces using the materials
bSplitComponents: Split the components

◆ ConvertStaticMeshToGeometryCollection() [3/3]

void FGeometryCollectionEngineConversion::ConvertStaticMeshToGeometryCollection ( const TObjectPtr< UStaticMesh StaticMesh,
FManagedArrayCollection OutCollection,
TArray< TObjectPtr< UMaterialInterface > > &  OutMaterialInstances,
TArray< FGeometryCollectionAutoInstanceMesh > &  OutInstancedMeshes,
bool  bSetInternalFromMaterialIndex = true,
bool  bSplitComponents = false 
)
static

◆ GetMaterialsFromInstances()

void FGeometryCollectionEngineConversion::GetMaterialsFromInstances ( const TArray< TObjectPtr< UMaterialInterface > > &  MaterialInstances,
TArray< TObjectPtr< UMaterial > > &  OutMaterials 
)
static

utility function to convert an array of material instances to an array of material

◆ GetMaxResMeshDescriptionWithNormalsAndTangents()

FMeshDescription * FGeometryCollectionEngineConversion::GetMaxResMeshDescriptionWithNormalsAndTangents ( const UStaticMesh StaticMesh)
static

Get a HiRes (or LOD 0 if no HiRes available) MeshDescription for the given static mesh, and make sure it includes normals and tangents. (i.e., to pass to AppendMeshDescription)

◆ GetSkeletalMeshLOD()

const FSkeletalMeshLODRenderData * FGeometryCollectionEngineConversion::GetSkeletalMeshLOD ( const USkeletalMesh SkeletalMesh,
int32  LOD 
)
static

The documentation for this class was generated from the following files: