Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/UPCGActorHelpers
Overloads
| Name |
Remarks |
Include Path |
Unreal Specifiers |
|
Spawn a new actor |
Helpers/PCGActorHelpers.h |
|
|
Spawn a new actor of type T and attach it to the parent (if not null) |
Helpers/PCGActorHelpers.h |
|
|
Spawn a new actor and attach it to the parent (if not null) |
Helpers/PCGActorHelpers.h |
|
|
Spawn a new actor and attach it to the parent (if not null) |
Helpers/PCGActorHelpers.h |
|
SpawnDefaultActor(const FSpawnDefaultActorParams &)
Description
Spawn a new actor
| |
|
| Name |
SpawnDefaultActor |
| Type |
function |
| Header File |
/Engine/Plugins/PCG/Source/PCG/Public/Helpers/PCGActorHelpers.h |
| Include Path |
#include "Helpers/PCGActorHelpers.h" |
| Source |
/Engine/Plugins/PCG/Source/PCG/Private/Helpers/PCGActorHelpers.cpp |
static AActor * SpawnDefaultActor
(
const FSpawnDefaultActorParams & Params
)
Parameters
| Name |
Remarks |
| Params |
struct containing all the parameters needed to spawn the actor |
Description
Spawn a new actor of type T and attach it to the parent (if not null)
| |
|
| Name |
SpawnDefaultActor |
| Type |
function |
| Header File |
/Engine/Plugins/PCG/Source/PCG/Public/Helpers/PCGActorHelpers.h |
| Include Path |
#include "Helpers/PCGActorHelpers.h" |
template<typename T, typename>
static AActor * SpawnDefaultActor
(
UWorld * World,
ULevel * Level,
FName BaseName,
const FTransform & Transform,
AActor * Parent
)
Parameters
| Name |
Remarks |
| World |
The world |
| Level |
The level to spawn into |
| BaseName |
Base name for the actor, will have a unique name |
| Transform |
The transform for the new actor |
| Parent |
Optional parent to attach to. |
Description
Spawn a new actor and attach it to the parent (if not null)
| |
|
| Name |
SpawnDefaultActor |
| Type |
function |
| Header File |
/Engine/Plugins/PCG/Source/PCG/Public/Helpers/PCGActorHelpers.h |
| Include Path |
#include "Helpers/PCGActorHelpers.h" |
| Source |
/Engine/Plugins/PCG/Source/PCG/Private/Helpers/PCGActorHelpers.cpp |
static AActor * SpawnDefaultActor
(
UWorld * World,
ULevel * Level,
TSubclassOf < AActor > ActorClass,
FName BaseName,
const FTransform & Transform,
AActor * Parent
)
Parameters
| Name |
Remarks |
| World |
The world |
| Level |
The level to spawn into |
| ActorClass |
Class of the actor to spawn |
| BaseName |
Base name for the actor, will have a unique name |
| Transform |
The transform for the new actor |
| Parent |
Optional parent to attach to. |
Description
Spawn a new actor and attach it to the parent (if not null)
| |
|
| Name |
SpawnDefaultActor |
| Type |
function |
| Header File |
/Engine/Plugins/PCG/Source/PCG/Public/Helpers/PCGActorHelpers.h |
| Include Path |
#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
)
Parameters
| Name |
Remarks |
| 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. |