Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UEditorActorSubsystem
Description
Create an actor and place it in the world editor. Can be created from a Blueprint or a Class. The actor will be created in the current level and will be selected.
| Name | SpawnActorFromClass |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/Subsystems/EditorActorSubsystem.h |
| Include Path | #include "Subsystems/EditorActorSubsystem.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/Subsystems/EditorActorSubsystem.cpp |
UFUNCTION (BlueprintCallable, Category="Editor Scripting | Level Utility",
Meta=(DeterminesOutputType="ActorClass"))
AActor * SpawnActorFromClass
(
TSubclassOf < class AActor > ActorClass,
FVector Location,
FRotator Rotation,
bool bTransient
)
The created actor.
Parameters
| Name | Remarks |
|---|---|
| ActorClass | Asset to attempt to use for an actor to place. |
| Location | Location of the new actor. |