Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Engine > UWorld > SpawnActor
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Engine/World.h |
Include | #include "Engine/World.h" |
template<class T>
T * SpawnActor
(
UClass * Class,
FVector const & Location,
FRotator const & Rotation,
const FActorSpawnParameters & SpawnParameters
)
Remarks
Templated version of SpawnActor that allows you to specify the rotation and location in addition class type via parameter while the return type is a parent class of that type