Module |
|
Header |
/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Public/EditorLevelLibrary.h |
Include |
#include "EditorLevelLibrary.h" |
Source |
/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Private/EditorLevelLibrary.cpp |
[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Editor Scripting | Level Utility",
Meta=(DeterminesOutputType="ActorClass"))
static AActor * SpawnActorFromClass
(
TSubclassOf< class AActor > ActorClass,
FVector Location,
FRotator Rotation
)
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.
The created actor.
Parameter |
Description |
---|---|
ActorClass |
Asset to attempt to use for an actor to place. |
Location |
Location of the new actor. |