Skip to content

ISMGraphGeneration::FCreateLocalGraphReadNodeArgs

#include <ISMGraphGeneration.h>

Description

struct ISMGraphGeneration::FCreateLocalGraphReadNodeArgs;

Arguments for spawning a local-graph-read K2 node into a state or transition graph.

Public Attributes

Name
ELocalGraphReadNodeType NodeType
UEdGraph * TargetGraph
FVector2D NodePosition
FGuid NodeInstanceGuid
int32 NodeInstanceIndex

Public Attributes Documentation

variable NodeType

ELocalGraphReadNodeType NodeType = ELocalGraphReadNodeType::TimeInState;

[Required] The type of local-graph-read 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 (transition-only, state-only, etc.); the call fails if the NodeType's USMGraphK2Node subclass rejects the supplied graph.


variable NodePosition

FVector2D NodePosition = FVector2D::ZeroVector;

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


variable NodeInstanceGuid

FGuid NodeInstanceGuid;

[Optional] Stack node-instance guid to target when NodeType is ELocalGraphReadNodeType::GetNodeInstance and the caller wants a specific stack entry. Invalid guid means the primary node template is targeted. Ignored for other types.


variable NodeInstanceIndex

int32 NodeInstanceIndex = INDEX_NONE;

[Optional] Stack index of the node-instance to target when NodeType is ELocalGraphReadNodeType::GetNodeInstance. INDEX_NONE means the primary node template. Ignored for other types.