Skip to content

ISMGraphGeneration::FCreateLocalGraphEventNodeArgs

#include <ISMGraphGeneration.h>

Description

struct ISMGraphGeneration::FCreateLocalGraphEventNodeArgs;

Arguments for spawning a lifecycle event-entry K2 node into a state, transition, or conduit's local graph.

Public Attributes

Name
ELocalGraphEventNodeType NodeType
UEdGraph * TargetGraph
FVector2D NodePosition

Public Attributes Documentation

variable NodeType

ELocalGraphEventNodeType NodeType = ELocalGraphEventNodeType::OnInitialized;

[Required] The type of event-entry node to create.


variable TargetGraph

UEdGraph * TargetGraph = nullptr;

[Required] The local graph the node should be placed in. Each NodeType has its own compatibility rules (state-only, transition-only, etc.); the call fails if the NodeType's USMGraphK2Node subclass rejects the supplied graph. The singleton kinds also fail when an instance is already present in the graph.


variable NodePosition

FVector2D NodePosition = FVector2D::ZeroVector;

[Optional] Position within the target graph. Defaults to origin.