Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UWorld
Description
Spawns given class and returns class T pointer, forcibly sets world transform (note this allows scale as well). WILL NOT run Construction Script of Blueprints to give caller an opportunity to set parameters beforehand. Caller is responsible for invoking construction manually by calling UGameplayStatics::FinishSpawningActor (see AActor::OnConstruction).
| Name | SpawnActorDeferred |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/World.h |
| Include Path | #include "Engine/World.h" |
template<class T>
T * SpawnActorDeferred
(
UClass * Class,
FTransform const & Transform,
AActor * Owner,
APawn * Instigator,
ESpawnActorCollisionHandlingMethod CollisionHandlingOverride,
ESpawnActorScaleMethod TransformScaleMethod
)