Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/RuntimeGen > API/Plugins/PCG/RuntimeGen/GenSources
Inheritance Hierarchy
- UObject
- IPCGGenSourceBase
- UPCGGenSourcePlayer
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/RuntimeGen/GenSources/PCGGenSourcePlayer.h |
| Include | #include "RuntimeGen/GenSources/PCGGenSourcePlayer.h" |
Syntax
UCLASS (BlueprintType, ClassGroup=(Procedural))
class UPCGGenSourcePlayer :
public UObject,
public IPCGGenSourceBase
Remarks
A UPCGGenSourcePlayer is automatically captured for all PlayerControllers in the level on Login/Logout.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TWeakObjectPtr< const APlayerController > | PlayerController |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TWeakObjectPtr< const APlayerController > | |||
| bool | IsValid () |
||
| void | SetPlayerController
(
const APlayerController* InPlayerController |
Overridden from IPCGGenSourceBase
| Type | Name | Description | |
|---|---|---|---|
| TOptional< FVector > | GetDirection () |
Returns the normalized forward vector of this gen source. | |
| TOptional< FVector > | GetPosition () |
Returns the world space position of this gen source. |