Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/RuntimeGen > API/Plugins/PCG/RuntimeGen/GenSources
Inheritance Hierarchy
- UActorComponent
- IPCGGenSourceBase
- UPCGGenSourceComponent
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/RuntimeGen/GenSources/PCGGenSourceComponent.h |
| Include | #include "RuntimeGen/GenSources/PCGGenSourceComponent.h" |
Syntax
UCLASS (BlueprintType, ClassGroup=(Procedural), DisplayName="PCG Generation Source",
Meta=(BlueprintSpawnableComponent, prioritizeCategories="PCG"))
class UPCGGenSourceComponent :
public UActorComponent,
public IPCGGenSourceBase
Remarks
UPCGGenSourceComponent makes the actor this is attached to act as a PCG runtime generation source.
Constructors
No constructors are accessible with public or protected access.
Destructors
No destructors are accessible with public or protected access.
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | BeginPlay () |
||
| void | EndPlay
(
const EEndPlayReason::Type EndPlayReason |
||
| FPCGGenSourceManager * | |||
| void | |||
| void | OnComponentDestroyed
(
bool bDestroyingHierarchy |
||
| void | OnRegister () |
||
| void | OnUnregister () |
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. |