Navigation
API > API/Editor > API/Editor/StaticMeshEditor > API/Editor/StaticMeshEditor/UStaticMeshEditorSubsystem
Description
Merge the meshes into a unique mesh with the provided StaticMeshActors. There are multiple options on how to merge the meshes and their materials. The ActorsToMerge need to be in the same Level. This may have a high impact on performance depending of the MeshMergingSettings options.
| Name | MergeStaticMeshActors |
| Type | function |
| Header File | /Engine/Source/Editor/StaticMeshEditor/Public/StaticMeshEditorSubsystem.h |
| Include Path | #include "StaticMeshEditorSubsystem.h" |
| Source | /Engine/Source/Editor/StaticMeshEditor/Private/StaticMeshEditorSubsystem.cpp |
UFUNCTION (BlueprintCallable, Category="Editor Scripting | Dataprep")
bool MergeStaticMeshActors
(
const TArray < class AStaticMeshActor * > & ActorsToMerge,
const FMergeStaticMeshActorsOptions & MergeOptions,
class AStaticMeshActor *& OutMergedActor
)
if the operation is successful.
Parameters
| Name | Remarks |
|---|---|
| ActorsToMerge | List of Actors to merge. |
| MergeOptions | Options on how to merge the actors. |
| OutMergedActor | The new created actor, if requested. |