UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FGraphNodeCreator< NodeType > Struct Template Reference

#include <EdGraph.h>

Public Member Functions

 FGraphNodeCreator (UEdGraph &InGraph)
 
NodeType * CreateNode (bool bSelectNewNode=true, TSubclassOf< NodeType > NodeClass=NodeType::StaticClass())
 
NodeType * CreateUserInvokedNode (bool bSelectNewNode=true, TSubclassOf< NodeType > NodeClass=NodeType::StaticClass())
 
void Finalize ()
 
 ~FGraphNodeCreator ()
 

Detailed Description

template<typename NodeType>
struct FGraphNodeCreator< NodeType >

Helper object to ensure a graph node is correctly constructed

Typical use pattern is: FGraphNodeCreator<NodeType> NodeCreator(Graph); NodeType* Node = NodeCreator.CreateNode(); // calls to build out node Node->MemberVar = ... NodeCreator.Finalize();

Constructor & Destructor Documentation

◆ FGraphNodeCreator()

template<typename NodeType >
FGraphNodeCreator< NodeType >::FGraphNodeCreator ( UEdGraph InGraph)
inline

◆ ~FGraphNodeCreator()

template<typename NodeType >
FGraphNodeCreator< NodeType >::~FGraphNodeCreator ( )
inline

Destructor. Ensures that finalized was called

Member Function Documentation

◆ CreateNode()

template<typename NodeType >
NodeType * FGraphNodeCreator< NodeType >::CreateNode ( bool  bSelectNewNode = true,
TSubclassOf< NodeType >  NodeClass = NodeType::StaticClass() 
)
inline

Create an empty placeable graph node

◆ CreateUserInvokedNode()

template<typename NodeType >
NodeType * FGraphNodeCreator< NodeType >::CreateUserInvokedNode ( bool  bSelectNewNode = true,
TSubclassOf< NodeType >  NodeClass = NodeType::StaticClass() 
)
inline

Create an empty placeable graph node

◆ Finalize()

template<typename NodeType >
void FGraphNodeCreator< NodeType >::Finalize ( )
inline

Call to finalize the node's construction


The documentation for this struct was generated from the following file: