UEditorLevelLibrary::ConvertActors

Replace in the level all Actors provided with a new actor of type ActorClass.

Windows
MacOS
Linux

References

Module

EditorScriptingUtilities

Header

/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Public/EditorLevelLibrary.h

Include

#include "EditorLevelLibrary.h"

Source

/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Private/EditorLevelLibrary.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Editor Scripting | Dataprep",
          Meta=(DeterminesOutputType="ActorClass"))
static TArray< class AActor * > ConvertActors
(
    const TArray< class AActor * > & Actors,
    TSubclassOf< class AActor > ActorClass,
    const FString & StaticMeshPackagePath
)

Remarks

Replace in the level all Actors provided with a new actor of type ActorClass. Destroy all Actors provided.

Parameters

Parameter

Description

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/

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss