Navigation
Unreal Engine C++ API Reference > Editor > UnrealEd > Editor > UEditorEngine
References
Module | UnrealEd |
Header | /Engine/Source/Editor/UnrealEd/Classes/Editor/EditorEngine.h |
Include | #include "Editor/EditorEngine.h" |
Source | /Engine/Source/Editor/UnrealEd/Private/EditorEngine.cpp |
void ReplaceActors
&40;
UActorFactory &42; Factory,
const FAssetData & AssetData,
const TArray< AActor &42; > & ActorsToReplace,
TArray< AActor &42; > &42; OutNewActors,
bool bCopySourceProperties
&41;
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 |
---|---|
Factory | the Factory to use to create Actors |
AssetData | the asset to feed the Factory |
ActorsToReplace | Actors to replace |
OutNewActors | Actors that were created |