Navigation
API > API/Plugins > API/Plugins/PCG
Inheritance Hierarchy
References
| Module | PCG |
| Header | /Engine/Plugins/Experimental/PCG/Source/PCG/Public/PCGGraph.h |
| Include | #include "PCGGraph.h" |
Syntax
class UPCGGraph : public UPCGGraphInterface
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bDebugFlagAppliesToIndividualComponents | When true the Debug flag in the graph editor will display debug information contextually for the selected debug object. | |
| bool | bExposeToLibrary | ||
| bool | bLandscapeUsesMetadata | ||
| bool | bUseHierarchicalGeneration | ||
| FText | Category | ||
| FText | Description | ||
| TArray< TObjectPtr< UObject > > | ExtraEditorNodes | Extra data to hold information that is useful only in editor (like comments) | |
| EPCGHiGenGrid | HiGenGridSize | ||
| TObjectPtr< UPCGNode > | InputNode | Add input/output nodes. | |
| TArray< TObjectPtr< UPCGNode > > | Nodes | ||
| TMap< const UPCGNode *, uint32 > | NodeToGridSize | Execution grid size for nodes. | |
| FRWLock | NodeToGridSizeLock | ||
| TObjectPtr< UPCGNode > | OutputNode | ||
| FInstancedPropertyBag | UserParameters | Parameters. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UPCGGraph
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| UPCGNode * | Adds a directed edge in the graph. Returns the "To" node for easy chaining | ||
| bool | AddLabeledEdge
(
UPCGNode* From, |
Creates an edge between two nodes/pins based on the labels. | |
| void | |||
| UPCGNode * | AddNode
(
UPCGSettingsInterface* InSettings |
Creates a node using the given settings interface. | |
| UPCGNode * | AddNodeCopy
(
UPCGSettings* InSettings, |
Creates a node and copies the input settings. Returns the created node. | |
| UPCGNode * | AddNodeInstance
(
UPCGSettings* InSettings |
Creates a node containing an instance to the given settings. Returns the created node. | |
| UPCGNode * | AddNodeOfType
(
TSubclassOf< class UPCGSettings > InSettingsClass, |
Creates a default node based on the settings class wanted. Returns the newly created node. | |
| uint32 | CalculateNodeGridSizeRecursive_Unsafe
(
const UPCGNode* InNode, |
Calculates node grid size. Not thread safe, called within write lock. | |
| bool | |||
| bool | |||
| void | DeclareConstructClasses
(
TArray< FTopLevelAssetPath >& OutConstructClasses, |
||
| void | |||
| void | |||
| void | |||
| void | |||
| void | |||
| void | ForEachNode
(
const TFunction< void(UPCGNode*)>& Action |
Calls the lambda on every node in graph. | |
| EPCGHiGenGrid | Default grid size for generation. For hierarchical generation, nodes outside of grid size graph ranges will generate on this grid. | ||
| uint32 | |||
| const TArray< TObjectPtr< UObject > > & | |||
| void | GetGridSizes
(
PCGHiGenGrid::FSizeArray& OutGridSizes, |
Determine the relevant grid sizes by inspecting all HiGenGridSize nodes. | |
| UPCGNode * | GetInputNode () |
Returns the graph input node | |
| uint32 | GetNodeGenerationGridSize
(
const UPCGNode* InNode, |
Size of grid on which this node should be executed. | |
| const TArray< UPCGNode * > & | GetNodes () |
||
| UPCGNode * | Returns the graph output node | ||
| void | GetTrackedActorKeysToSettings
(
FPCGActorSelectionKeyToSettingsMap& OutKeysToSettings, |
||
| FPCGActorSelectionKeyToSettingsMap | |||
| bool | |||
| bool | IsInspecting () |
||
| bool | |||
| void | OnNodeAdded
(
UPCGNode* InNode |
||
| void | OnNodeRemoved
(
UPCGNode* InNode |
||
| void | PostNodeUndo
(
UPCGNode* InPCGNode |
||
| void | PreNodeUndo
(
UPCGNode* InPCGNode |
||
| TObjectPtr< UPCGNode > | ReconstructNewNode
(
const UPCGNode* InNode |
Duplicate a given node by creating a new node with the same settings and properties, but without any edges and add it to the graph | |
| bool | RemoveEdge
(
UPCGNode* From, |
Removes an edge in the graph. Returns true if an edge was removed. | |
| bool | RemoveInboundEdges
(
UPCGNode* InNode, |
||
| void | RemoveNode
(
UPCGNode* InNode |
Removes a node from the graph. | |
| bool | RemoveOutboundEdges
(
UPCGNode* InNode, |
||
| void | SetExtraEditorNodes
(
const TArray< TObjectPtr< const UObject >>& InNodes |
||
| void | |||
| bool | UserParametersCanRemoveProperty
(
FGuid InPropertyID, |
||
| bool | UserParametersIsPinTypeAccepted
(
FEdGraphPinType InPinType |
Overridden from UPCGGraphInterface
| Type | Name | Description | |
|---|---|---|---|
| const UPCGGraph * | GetGraph () |
||
| UPCGGraph * | GetGraph () |
~End UObject interface ~Begin UPCGGraphInterface interface | |
| const FInstancedPropertyBag * |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Called before destroying the object. | |
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | PostLoad () |
~Begin UObject interface | |
| void | PreEditChange
(
FProperty* PropertyAboutToChange |
This is called when a property is about to be modified externally |