Navigation
API > API/Plugins > API/Plugins/PCG
This GenerationSource captures active Editor Viewports per tick to provoke RuntimeGeneration. Editor Viewports are not captured by default, but can be enabled on the PCGWorldActor via bTreatEditorViewportAsGenerationSource.
| Name | UPCGGenSourceEditorCamera |
| Type | class |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/RuntimeGen/GenSources/PCGGenSourceEditorCamera.h |
| Include Path | #include "RuntimeGen/GenSources/PCGGenSourceEditorCamera.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType, ClassGroup=(Procedural))
class UPCGGenSourceEditorCamera :
public UObject ,
public IPCGGenSourceBase
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UPCGGenSourceEditorCamera
Implements Interfaces
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| EditorViewportClient | FEditorViewportClient * | RuntimeGen/GenSources/PCGGenSourceEditorCamera.h | ||
| ViewFrustum | TOptional< FConvexVolume > | RuntimeGen/GenSources/PCGGenSourceEditorCamera.h |
Functions
Public
Overridden from IPCGGenSourceBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TOptional< FVector > GetDirection() |
Returns the normalized forward vector of this gen source. | RuntimeGen/GenSources/PCGGenSourceEditorCamera.h | |
virtual TOptional< FVector > GetPosition() |
Returns the world space position of this gen source. | RuntimeGen/GenSources/PCGGenSourceEditorCamera.h | |
virtual TOptional< FConvexVolume > GetViewFrustum
(
bool bIs2DGrid |
Returns the view frustum of this gen source. | RuntimeGen/GenSources/PCGGenSourceEditorCamera.h | |
virtual void Tick () |
Update the generation source so that it can cache data that is queried often (e.g. view frustum). | RuntimeGen/GenSources/PCGGenSourceEditorCamera.h |