Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Helpers > API/Plugins/PCG/Helpers/UPCGActorHelpers > API/Plugins/PCG/Helpers/UPCGActorHelpers/SpawnDefaultActor
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/Helpers/PCGActorHelpers.h |
| Include | #include "Helpers/PCGActorHelpers.h" |
| Source | /Engine/Plugins/PCG/Source/PCG/Private/Helpers/PCGActorHelpers.cpp |
static AActor * SpawnDefaultActor
(
UWorld * World,
ULevel * Level,
TSubclassOf < AActor > ActorClass,
const FTransform & Transform,
const FActorSpawnParameters & SpawnParams,
AActor * Parent
)
Remarks
Spawn a new actor and attach it to the parent (if not null)
Parameters
| Name | Description |
|---|---|
| World | The world |
| Level | The level to spawn into |
| ActorClass | Class of the actor to spawn |
| Transform | The transform for the new actor |
| SpawnParams | The spawn parameters |
| Parent | Optional parent to attach to. |