Navigation
API > API/Runtime > API/Runtime/GeometryCollectionEngine > API/Runtime/GeometryCollectionEngine/GeometryCollection > API/Runtime/GeometryCollectionEngine/GeometryCollection/FGeometryCollect-_9 > API/Runtime/GeometryCollectionEngine/GeometryCollection/FGeometryCollect-_9/ConvertStaticMes-
References
| Module | GeometryCollectionEngine |
| Header | /Engine/Source/Runtime/Experimental/GeometryCollectionEngine/Public/GeometryCollection/GeometryCollectionEngineConversion.h |
| Include | #include "GeometryCollection/GeometryCollectionEngineConversion.h" |
| Source | /Engine/Source/Runtime/Experimental/GeometryCollectionEngine/Private/GeometryCollection/GeometryCollectionEngineConversion.cpp |
static void ConvertStaticMeshToGeometryCollection
(
const TObjectPtr < UStaticMesh > StaticMesh,
FManagedArrayCollection & OutCollection,
TArray < TObjectPtr < UMaterial > > & OutMaterials,
TArray < FGeometryCollectionAutoInstanceMesh > & OutInstancedMeshes,
bool bSetInternalFromMaterialIndex,
bool bSplitComponents
)
Remarks
Converts a StaticMesh to a GeometryCollection
Parameters
| Name | Description |
|---|---|
| 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 |