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 |
static void ReplaceActors
(
UActorFactory * InFactory,
const FAssetData & InAssetData,
const TArray < AActor * > & InActorsToReplace,
TArray < AActor * > * InOutNewActors,
bool bInCopySourceProperties
)
Remarks
Replaces specified Actors with the same number of a different kind of Actor using the specified factory to spawn the new Actors note that only Location, Rotation, Drawscale, Drawscale3D, Tag, and Group are copied from the old Actors
Parameters
| Name | Description |
|---|---|
| InFactory | the Factory to use to create Actors |
| InAssetData | the asset to feed the Factory |
| InActorsToReplace | Actors to replace |
| InOutNewActors | Actors that were created |