FGeometryCollectionConversion::AppendStaticMesh

Appends a static mesh to a GeometryCollectionComponent.

Windows
MacOS
Linux

References

Module

GeometryCollectionEditor

Header

/Engine/Plugins/Experimental/GeometryCollectionPlugin/Source/GeometryCollectionEditor/Public/GeometryCollection/GeometryCollectionConversion.h

Include

#include "GeometryCollection/GeometryCollectionConversion.h"

Source

/Engine/Plugins/Experimental/GeometryCollectionPlugin/Source/GeometryCollectionEditor/Private/GeometryCollection/GeometryCollectionConversion.cpp

Syntax

static void AppendStaticMesh
(
    const UStaticMesh * StaticMesh,
    const TArray< UMaterialInterface * > & Materials,
    const FTransform & StaticMeshTransform,
    UGeometryCollection * GeometryCollectionObject,
    bool ReindexMaterials
)

Remarks

Appends a static mesh to a GeometryCollectionComponent.

Parameters

Parameter

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss