Skip to content

ISMGraphGeneration::FMergeStatesArgs

#include <ISMGraphGeneration.h>

Description

struct ISMGraphGeneration::FMergeStatesArgs;

Arguments for merging source states' node-class templates into a destination state's stack, the headless equivalent of the editor's "Cut and Merge States" / "Copy and Merge States".

Public Attributes

Name
USMGraphNode_StateNode * DestinationState
TArray< USMGraphNode_StateNode * > SourceStates
bool bDestroyStates

Public Attributes Documentation

variable DestinationState

USMGraphNode_StateNode * DestinationState = nullptr;

[Required] The state that receives the merged node-class templates as new stack entries.


variable SourceStates

TArray< USMGraphNode_StateNode * > SourceStates;

[Required] The source states whose templates are merged into the destination. Each must be a distinct state in the same graph as the destination. A source using the default node class with no stack contributes nothing.


variable bDestroyStates

bool bDestroyStates = false;

[Optional] When true, destroy each merged source state and rewire its transitions onto the destination (cut). When false, leave the sources in place (copy).