Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UEditorEngine
Description
Sets up for a potentially deferred ConvertActors call, based on if any brushes are being converted to a static mesh. If one (or more) are being converted, the user will need to put in a package before the process continues.
| Name | ConvertActors |
| 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 |
void ConvertActors
(
const TArray < AActor * > & ActorsToConvert,
UClass * ConvertToClass,
const TSet< FString > & ComponentsToConsider,
bool bUseSpecialCases
)
Parameters
| Name | Remarks |
|---|---|
| ActorsToConvert | Array of actors which should be converted to the new class type |
| ConvertToClass | Class to convert the provided actors to |
| ComponentsToConsider | Names of components to consider for property copying as well |
| bUseSpecialCases | If true, looks for classes that can be handled by hardcoded conversions |