IMeshMergeUtilities::MergeComponentsToInstances

Merges static mesh components into a single actor with multiple instanced static mesh components

Unreal Engine C++ API Reference > Developer > MeshMergeUtilities > IMeshMergeUtilities

References

   
Module MeshMergeUtilities
Header /Engine/Source/Developer/MeshMergeUtilities/Public/IMeshMergeUtilities.h
Include #include "IMeshMergeUtilities.h"
void MergeComponentsToInstances
(
    const [TArray](API\Runtime\Core\Containers\TArray)< [UPrimitiveComponent](API\Runtime\Engine\Components\UPrimitiveComponent) * > & ComponentsToMerge,
    [UWorld](API\Runtime\Engine\Engine\UWorld) * World,
    [ULevel](API\Runtime\Engine\Engine\ULevel) * Level,
    const [FMeshInstancingSettings](API\Runtime\Engine\Engine\FMeshInstancingSettings) & InSettings,
    bool bActuallyMerge,
    bool bReplaceSourceActors,
    [FText](API\Runtime\Core\Internationalization\FText) * OutResultsText
) const

Remarks

Merges static mesh components into a single actor with multiple instanced static mesh components void

Parameters

Name Description
ComponentsToMerge Components to merge
World World in which the components reside Level - The level in which to create the new merged actor
InSettings Settings to use
bActuallyMerge Whether to actually perform the merge (could just be fetching predicted results)
OutResultsText (optional) Results of the merge

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library