Navigation
API > API/Plugins > API/Plugins/PCG
UPCGGenSourceComponent makes the actor this is attached to act as a PCG runtime generation source.
| Name | UPCGGenSourceComponent |
| Type | class |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/RuntimeGen/GenSources/PCGGenSourceComponent.h |
| Include Path | #include "RuntimeGen/GenSources/PCGGenSourceComponent.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType, ClassGroup=(Procedural), DisplayName="PCG Generation Source",
Meta=(BlueprintSpawnableComponent, prioritizeCategories="PCG"))
class UPCGGenSourceComponent :
public UActorComponent ,
public IPCGGenSourceBase
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → UPCGGenSourceComponent
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UPCGGenSourceComponent
(
const FObjectInitializer& InObjectInitializer |
RuntimeGen/GenSources/PCGGenSourceComponent.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~UPCGGenSourceComponent() |
RuntimeGen/GenSources/PCGGenSourceComponent.h |
Functions
Public
Overridden from UActorComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void BeginPlay() |
RuntimeGen/GenSources/PCGGenSourceComponent.h | ||
virtual void EndPlay
(
const EEndPlayReason::Type EndPlayReason |
RuntimeGen/GenSources/PCGGenSourceComponent.h | ||
virtual void OnComponentCreated() |
RuntimeGen/GenSources/PCGGenSourceComponent.h | ||
virtual void OnComponentDestroyed
(
bool bDestroyingHierarchy |
RuntimeGen/GenSources/PCGGenSourceComponent.h | ||
virtual void OnRegister() |
RuntimeGen/GenSources/PCGGenSourceComponent.h | ||
virtual void OnUnregister() |
RuntimeGen/GenSources/PCGGenSourceComponent.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/PCGGenSourceComponent.h | |
virtual TOptional< FVector > GetPosition() |
Returns the world space position of this gen source. | RuntimeGen/GenSources/PCGGenSourceComponent.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPCGGenSourceManager * GetGenSourceManager() |
RuntimeGen/GenSources/PCGGenSourceComponent.h |