URigVMController::AddVariableNode

Adds a Variable Node to the edited Graph.

Windows
MacOS
Linux

References

Module

RigVMDeveloper

Header

/Engine/Source/Developer/RigVMDeveloper/Public/RigVMModel/RigVMController.h

Include

#include "RigVMModel/RigVMController.h"

Source

/Engine/Source/Developer/RigVMDeveloper/Private/RigVMModel/RigVMController.cpp

Syntax

URigVMVariableNode * AddVariableNode
(
    const FName & InVariableName,
    const FString & InCPPType,
    UObject * InCPPTypeObject,
    bool bIsGetter,
    const FString & InDefaultValue,
    const FVector2D & InPosition,
    const FString & InNodeName,
    bool bSetupUndoRedo,
    bool bPrintPythonCommand
)

Remarks

Adds a Variable Node to the edited Graph. Variables represent local work state for the function and can be read from and written to. This causes a NodeAdded modified event.