/Engine/Source/Editor/UnrealEd/Public/Subsystems/EditorActorSubsystem.h
Replace in the level all Actors provided with a new actor of type ActorClass. Destroy all Actors provided.
[TArray](API\Runtime\Core\Containers\TArray)< class [AActor](API\Runtime\Engine\GameFramework\AActor) * > ConvertActors ( const [TArray](API\Runtime\Core\Containers\TArray)< class [AActor](API\Runtime\Engine\GameFramework\AActor) * > & Actors, [TSubclassOf](API\Runtime\CoreUObject\Templates\TSubclassOf)< class [AActor](API\Runtime\Engine\GameFramework\AActor) > ActorClass, const [FString](API\Runtime\Core\Containers\FString) & StaticMeshPackagePath )