Navigation
API > API/Plugins > API/Plugins/PCG
A UPCGGenSourcePlayer is automatically captured for all PlayerControllers in the level on Login/Logout.
| Name | UPCGGenSourcePlayer |
| Type | class |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/RuntimeGen/GenSources/PCGGenSourcePlayer.h |
| Include Path | #include "RuntimeGen/GenSources/PCGGenSourcePlayer.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType, ClassGroup=(Procedural))
class UPCGGenSourcePlayer :
public UObject ,
public IPCGGenSourceBase
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UPCGGenSourcePlayer
Implements Interfaces
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TWeakObjectPtr< const APlayerController > GetPlayerController() |
RuntimeGen/GenSources/PCGGenSourcePlayer.h | ||
bool IsValid() |
RuntimeGen/GenSources/PCGGenSourcePlayer.h | ||
void SetPlayerController
(
const APlayerController* InPlayerController |
RuntimeGen/GenSources/PCGGenSourcePlayer.h |
Overridden from IPCGGenSourceBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TOptional< FVector > GetDirection() |
Returns the normalized forward vector of this gen source. | RuntimeGen/GenSources/PCGGenSourcePlayer.h | |
virtual TOptional< FVector > GetPosition() |
Returns the world space position of this gen source. | RuntimeGen/GenSources/PCGGenSourcePlayer.h | |
virtual TOptional< FConvexVolume > GetViewFrustum
(
bool bIs2DGrid |
Returns the view frustum of this gen source. | RuntimeGen/GenSources/PCGGenSourcePlayer.h | |
virtual void Tick () |
Update the generation source so that it can cache data that is queried often (e.g. view frustum). | RuntimeGen/GenSources/PCGGenSourcePlayer.h |