Navigation
API > API/Runtime > API/Runtime/GeometryCollectionEngine > API/Runtime/GeometryCollectionEngine/GeometryCollection > API/Runtime/GeometryCollectionEngine/GeometryCollection/FGeometryCollect-_9
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 AppendMeshDescription
(
const FMeshDescription * MeshDescription,
const FString & Name,
int32 StartMaterialIndex,
const FTransform & StaticMeshTransform,
FGeometryCollection * GeometryCollection,
UBodySetup * BodySetup,
bool bReindexMaterials,
bool bAddInternalMaterials,
bool bSetInternalFromMaterialIndex
)
Remarks
Appends a MeshDescription to a GeometryCollection.
Parameters
| Name | Description |
|---|---|
| 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 |