Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UEditorEngine
Description
Converts passed in brushes into a single static mesh actor. Note: This replaces all the brushes with a single actor. This actor will not be attached to anything unless a single brush was converted.
| Name | ConvertBrushesToStaticMesh |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Classes/Editor/EditorEngine.h |
| Include Path | #include "Editor/EditorEngine.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/EditorEngine.cpp |
AActor * ConvertBrushesToStaticMesh
(
const FString & InStaticMeshPackageName,
TArray < ABrush * > & InBrushesToConvert,
const FVector & InPivotLocation
)
Returns the newly created actor with the newly created static mesh.
Parameters
| Name | Remarks |
|---|---|
| InStaticMeshPackageName | The name to save the brushes to. |
| InBrushesToConvert | A list of brushes being converted. |