Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/Subsystems > API/Editor/UnrealEd/Subsystems/UEditorActorSubsystem
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/Subsystems/EditorActorSubsystem.h |
| Include | #include "Subsystems/EditorActorSubsystem.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/Subsystems/EditorActorSubsystem.cpp |
TArray< class AActor &42; > ConvertActors
&40;
const TArray< class AActor &42; > & Actors,
TSubclassOf< class AActor > ActorClass,
const FString & StaticMeshPackagePath
&41;
Remarks
Replace in the level all Actors provided with a new actor of type ActorClass. Destroy all Actors provided.
Parameters
| Name | 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/ |