Navigation
API > API/Runtime > API/Runtime/GeometryCollectionEngine > API/Runtime/GeometryCollectionEngine/FGeometryCollectionEngineConvers-
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool AppendStaticMesh
(
const UStaticMesh* StaticMesh, |
Appends a static mesh to a GeometryCollectionComponent. | GeometryCollection/GeometryCollectionEngineConversion.h | |
static bool AppendStaticMesh
(
const UStaticMesh* StaticMesh, |
TODO: consider having the below fn return bool, and have a helper that returns the StartMaterialIndex from UGeometryCollection before any materials are actually added, so we can call the AppendMaterial function after, and not need to use its return value ... | GeometryCollection/GeometryCollectionEngineConversion.h | |
static void AppendStaticMesh
(
const UStaticMesh* StaticMesh, |
Appends a static mesh to a GeometryCollectionComponent. | GeometryCollection/GeometryCollectionEngineConversion.h |
AppendStaticMesh(const UStaticMesh , const TArray< UMaterialInterface > &, const FTransform &, UGeometryCollection *, bool, bool, bool, bool)
Description
Appends a static mesh to a GeometryCollectionComponent.
| Name | AppendStaticMesh |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/GeometryCollectionEngine/Public/GeometryCollection/GeometryCollectionEngineConversion.h |
| Include Path | #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
)
true if succeeded in appending a mesh
Parameters
| Name | Remarks |
|---|---|
| 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 |
AppendStaticMesh(const UStaticMesh , int32, const FTransform &, FGeometryCollection , bool, bool, bool, bool)
Description
TODO: consider having the below fn return bool, and have a helper that returns the StartMaterialIndex from UGeometryCollection before any materials are actually added, so we can call the AppendMaterial function after, and not need to use its return value ... This would let the is-there-a-valid-mesh logic live inside this function NOTE: and similar change will need to propagate to similar places ... Appends a static mesh to a GeometryCollectionComponent.
| Name | AppendStaticMesh |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/GeometryCollectionEngine/Public/GeometryCollection/GeometryCollectionEngineConversion.h |
| Include Path | #include "GeometryCollection/GeometryCollectionEngineConversion.h" |
| Source | /Engine/Source/Runtime/Experimental/GeometryCollectionEngine/Private/GeometryCollection/GeometryCollectionEngineConversion.cpp |
static bool AppendStaticMesh
(
const UStaticMesh * StaticMesh,
int32 StartMaterialIndex,
const FTransform & StaticMeshTransform,
FGeometryCollection * GeometryCollection,
bool bReindexMaterials,
bool bAddInternalMaterials,
bool bSplitComponents,
bool bSetInternalFromMaterialIndex
)
true if succeeded in appending a mesh
Parameters
| Name | Remarks |
|---|---|
| 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 |
AppendStaticMesh(const UStaticMesh , const UStaticMeshComponent , const FTransform &, UGeometryCollection *, bool, bool, bool, bool)
Description
Appends a static mesh to a GeometryCollectionComponent.
| Name | AppendStaticMesh |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/GeometryCollectionEngine/Public/GeometryCollection/GeometryCollectionEngineConversion.h |
| Include Path | #include "GeometryCollection/GeometryCollectionEngineConversion.h" |
| Source | /Engine/Source/Runtime/Experimental/GeometryCollectionEngine/Private/GeometryCollection/GeometryCollectionEngineConversion.cpp |
static void AppendStaticMesh
(
const UStaticMesh * StaticMesh,
const UStaticMeshComponent * StaticMeshComponent,
const FTransform & StaticMeshTransform,
UGeometryCollection * GeometryCollection,
bool bReindexMaterials,
bool bAddInternalMaterials,
bool bSplitComponents,
bool bSetInternalFromMaterialIndex
)
Parameters
| Name | Remarks |
|---|---|
| StaticMeshComponent | : Const mesh to read vertex/normals/index data from |
| StaticMeshTransform | : Mesh transform. |
| GeometryCollection | : Collection to append the mesh into. |