Navigation
API > API/Plugins > API/Plugins/EditorScriptingUtilities > API/Plugins/EditorScriptingUtilities/UEditorLevelLibrary
Description
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.
| Name | SpawnActorFromObject |
| Type | function |
| Header File | /Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Public/EditorLevelLibrary.h |
| Include Path | #include "EditorLevelLibrary.h" |
| Source | /Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Private/EditorLevelLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="Editor Scripting | Level Utility",
Meta=(KeyWords="Transient"))
static AActor * SpawnActorFromObject
(
class UObject * ObjectToUse,
FVector Location,
FRotator Rotation,
bool bTransient
)
The created actor.
Parameters
| Name | Remarks |
|---|---|
| ObjectToUse | Asset to attempt to use for an actor to place. |
| Location | Location of the new actor. |