UWorld::SpawnActor

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

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/World.h

Include

#include "Engine/World.h"

Syntax

template<class T>
T * SpawnActor
(
    UClass * Class,
    FTransform const & Transform,
    const FActorSpawnParameters & SpawnParameters
)

Remarks

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