Navigation
API > API/Runtime > API/Runtime/GeometryCollectionEngine > API/Runtime/GeometryCollectionEngine/GeometryCollection > API/Runtime/GeometryCollectionEngine/GeometryCollection/FGeometryCollect-_9 > API/Runtime/GeometryCollectionEngine/GeometryCollection/FGeometryCollect-_9/AppendStaticMesh
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 bool AppendStaticMesh
(
const UStaticMesh * StaticMesh,
const TArray < UMaterialInterface * > & Materials,
const FTransform & StaticMeshTransform,
UGeometryCollection * GeometryCollectionObject,
bool bReindexMaterials,
bool bAddInternalMaterials,
bool bSplitComponents,
bool bSetInternalFromMaterialIndex
)
Remarks
Appends a static mesh to a GeometryCollectionComponent. true if succeeded in appending a mesh
Parameters
| Name | Description |
|---|---|
| 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 |