/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Public/EditorLevelLibrary.h
Create an actor and place it in the world editor. The Actor can be created from a Factory, Archetype, Blueprint, Class or an Asset. The actor will be created in the current level and will be selected.
The created actor.
[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Editor Scripting | Level Utility", Meta=(KeyWords="Transient")) static [AActor](API\Runtime\Engine\GameFramework\AActor) * SpawnActorFromObject ( class [UObject](API\Runtime\CoreUObject\UObject\UObject) * ObjectToUse, FVector Location, FRotator Rotation, bool bTransient )