Navigation
API > API/Plugins > API/Plugins/EditorScriptingUtilities > API/Plugins/EditorScriptingUtilities/UEditorLevelLibrary
Description
Replace in the level all Actors provided with a new actor of type ActorClass. Destroy all Actors provided.
| Name | ConvertActors |
| Type | function |
| Header File | /Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Public/EditorLevelLibrary.h |
| Include Path | #include "EditorLevelLibrary.h" |
| Source | /Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Private/EditorLevelLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="Editor Scripting | Dataprep",
Meta=(DeterminesOutputType="ActorClass", DeprecatedFunction, DeprecationMessage="The Editor Scripting Utilities Plugin is deprecated - Use the function in Editor Actor Utilities Subsystem"))
static TArray < class AActor * > ConvertActors
(
const TArray < class AActor * > & Actors,
TSubclassOf < class AActor > ActorClass,
const FString & StaticMeshPackagePath
)
Parameters
| Name | Remarks |
|---|---|
| Actors | List of Actors to replace. |
| ActorClass | Class/Blueprint of the new actor that will be spawn. |
| StaticMeshPackagePath | If the list contains Brushes and it is requested to change them to StaticMesh, StaticMeshPackagePath is the package path to where the StaticMesh will be created. ie. /Game/MyFolder/ |