Navigation
API > API/Plugins > API/Plugins/PCG
A PCG Generation Source represents an object in the world that provokes nearby PCG Components to generate through the Runtime Generation Scheduler.
| Name | IPCGGenSourceBase |
| Type | class |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/RuntimeGen/GenSources/PCGGenSourceBase.h |
| Include Path | #include "RuntimeGen/GenSources/PCGGenSourceBase.h" |
Syntax
class IPCGGenSourceBase
Derived Classes
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TOptional< FVector > GetDirection() |
Returns the normalized forward vector of this gen source. | RuntimeGen/GenSources/PCGGenSourceBase.h | |
virtual TOptional< FVector > GetPosition() |
Returns the world space position of this gen source. | RuntimeGen/GenSources/PCGGenSourceBase.h | |
virtual TOptional< FConvexVolume > GetViewFrustum
(
bool bIs2DGrid |
Returns the view frustum of this gen source. | RuntimeGen/GenSources/PCGGenSourceBase.h | |
virtual void Tick () |
Update the generation source so that it can cache data that is queried often (e.g. view frustum). | RuntimeGen/GenSources/PCGGenSourceBase.h |