UWorld::SpawnActor

Spawn Actors with given transform and SpawnParameters

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

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

Include

#include "Engine/World.h"

Source

/Engine/Source/Runtime/Engine/Private/LevelActor.cpp

Syntax

AActor * SpawnActor
(
    UClass * Class,
    FTransform const * Transform,
    const FActorSpawnParameters & SpawnParameters
)

Remarks

Spawn Actors with given transform and SpawnParameters

Returns

Actor that just spawned

Parameters

Parameter

Description

Class

Class to Spawn

Transform

World Transform to spawn on

SpawnParameters

Spawn Parameters