Navigation
API > API/Plugins > API/Plugins/PCG
Composable state struct for dynamic pin management. Any UPCGSettings implementing IPCGDynamicPinsProvider can embed this as a UPROPERTY member (one per direction) and override GetDynamicPinContainer()/GetMutableDynamicPinContainer() to get full dynamic pin support with minimal boilerplate.
| Name | FPCGDynamicPinContainer |
| Type | struct |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/PCGDynamicPins.h |
| Include Path | #include "PCGDynamicPins.h" |
Syntax
USTRUCT ()
struct FPCGDynamicPinContainer
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| PinProperties | TArray< FPCGPinProperties > | The dynamic pin properties managed by this container. | PCGDynamicPins.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddPin
(
FPCGPinProperties&& Properties |
Appends a new dynamic pin. | PCGDynamicPins.h | |
bool CanRemovePin
(
const int32 Index |
Returns true if the pin at the given index can be removed. | PCGDynamicPins.h | |
bool ContainsPin
(
const FName Label |
Returns true if a pin with the given label exists in the container. | PCGDynamicPins.h | |
int32 FindPinIndex
(
const FName Label |
Returns the index of the pin with the given label, or INDEX_NONE if no such pin exists. | PCGDynamicPins.h | |
| Returns the labels of all dynamic pins. | PCGDynamicPins.h | ||
int32 Num() |
Returns the number of dynamic pins. | PCGDynamicPins.h | |
EPCGChangeType RemovePin
(
int32 Index, |
Removes the dynamic pin at the given index. | PCGDynamicPins.h | |
EPCGChangeType RenamePin
(
int32 Index, |
Renames the dynamic pin at the given index. | PCGDynamicPins.h |