SpawnActor

Overload list

Windows
MacOS
Linux
Name Description

Public function

T *

 

SpawnActor

(
    const FActorSpawnParameters & Spawn...
)

Templated version of SpawnActor that allows you to specify a class type via the template type

Public function

T *

 

SpawnActor

(
    UClass * Class,
    const FActorSpawnParameters & Spawn...
)

Templated version of SpawnActor that allows you to specify the class type via parameter while the return type is a parent class of that type

Public function

AActor *

 

SpawnActor

(
    UClass * Class,
    FTransform const* Transform,
    const FActorSpawnParameters & Spawn...
)

Spawn Actors with given transform and SpawnParameters

Public function

T *

 

SpawnActor

(
    FVector const& Location,
    FRotator const& Rotation,
    const FActorSpawnParameters & Spawn...
)

Templated version of SpawnActor that allows you to specify location and rotation in addition to class type via the template type

Public function

T *

 

SpawnActor

(
    UClass * Class,
    FTransform const& Transform,
    const FActorSpawnParameters & Spawn...
)

Templated version of SpawnActor that allows you to specify whole Transform class type via parameter while the return type is a parent class of that type

Public function

AActor *

 

SpawnActor

(
    UClass * InClass,
    FVector const* Location,
    FRotator const* Rotation,
    const FActorSpawnParameters & Spawn...
)

Spawn Actors with given transform and SpawnParameters

Public function

T *

 

SpawnActor

(
    UClass * Class,
    FVector const& Location,
    FRotator const& Rotation,
    const FActorSpawnParameters & Spawn...
)

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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback