Skip to content

ISMGraphGeneration::FCreateNodeClassVariableArgs

#include <ISMGraphGeneration.h>

Description

struct ISMGraphGeneration::FCreateNodeClassVariableArgs;

Arguments for creating a Blueprint variable on a node-class Blueprint (a USMNodeInstance subclass authored as a USMNodeBlueprint). Mirrors the LD Variable Details panel one-shot creation flow: the variable is added, the BP recompiled, and the override stamped on the CDO so directionality, hidden, and read-only states propagate to placed instances.

Public Attributes

Name
FName VariableName
FEdGraphPinType VariableType
FString DefaultValue
TOptional< ESMGraphPropertyDirection > Direction
TOptional< bool > bReadOnly
TOptional< bool > bHidden

Public Attributes Documentation

variable VariableName

FName VariableName;

[Required] Name of the variable to create.


variable VariableType

FEdGraphPinType VariableType;

[Required] Pin type for the new variable. Same shape FBlueprintEditorUtils::AddMemberVariable accepts.


variable DefaultValue

FString DefaultValue;

[Optional] Default value in UE property-text format. Empty = engine default for the type. Applied to the BP's NewVariables[i].DefaultValue and to the CDO after the post-add compile.


variable Direction

TOptional< ESMGraphPropertyDirection > Direction;

[Optional] Direction the new variable should expose as. Unset = no Input/Output flags (variable behaves as a plain BP variable with no graph-pin exposure).


variable bReadOnly

TOptional< bool > bReadOnly;

[Optional] Display the variable as read-only on the placed node. Unset = false.


variable bHidden

TOptional< bool > bHidden;

[Optional] Hide the variable from on-node display. The property graph is still compiled and evaluated; only the on-node display is suppressed. Unset = false.