Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Helpers
Inheritance Hierarchy
- UBlueprintFunctionLibrary
- UPCGActorHelpers
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/Helpers/PCGActorHelpers.h |
| Include | #include "Helpers/PCGActorHelpers.h" |
Syntax
UCLASS (BlueprintType)
class UPCGActorHelpers : public UBlueprintFunctionLibrary
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | DeleteActors
(
UWorld* World, |
||
| void | ForEachActorInLevel
(
ULevel* Level, |
||
| void | ForEachActorInLevel
(
ULevel* Level, |
Iterate over all actors in the level, from the given class, and pass them to a callback | |
| void | ForEachActorInWorld
(
UWorld* World, |
||
| void | ForEachActorInWorld
(
UWorld* World, |
Iterate over all actors in the world, from the given class, and pass them to a callback | |
| void | GetActorClassDefaultComponents
(
const TSubclassOf< AActor >& ActorClass, |
||
| FIntVector | GetCellCoord
(
FVector InPosition, |
Return the grid cell coordinates on the PCG partition grid given a position and the grid size. | |
| UInstancedStaticMeshComponent * | GetOrCreateISMC
(
AActor* InTargetActor, |
||
| UPCGManagedISMComponent * | GetOrCreateManagedISMC
(
AActor* InTargetActor, |
||
| AActor * | SpawnDefaultActor
(
UWorld* World, |
Spawn a new actor of type T and attach it to the parent (if not null) | |
| AActor * | SpawnDefaultActor
(
UWorld* World, |
Spawn a new actor and attach it to the parent (if not null) | |
| AActor * | SpawnDefaultActor
(
UWorld* World, |
Spawn a new actor and attach it to the parent (if not null) |