Navigation
API > API/Plugins > API/Plugins/RigVMDeveloper > API/Plugins/RigVMDeveloper/RigVMModel > API/Plugins/RigVMDeveloper/RigVMModel/URigVMController > API/Plugins/RigVMDeveloper/RigVMModel/URigVMController/AddUnitNode
References
| Module | RigVMDeveloper |
| Header | /Engine/Plugins/Runtime/RigVM/Source/RigVMDeveloper/Public/RigVMModel/RigVMController.h |
| Include | #include "RigVMModel/RigVMController.h" |
| Source | /Engine/Plugins/Runtime/RigVM/Source/RigVMDeveloper/Private/RigVMModel/RigVMController.cpp |
UFUNCTION&40;BlueprintCallable, Category&61;RigVMController&41;
URigVMUnitNode &42; AddUnitNode
&40;
UScriptStruct &42; InScriptStruct,
const FName & InMethodName,
const FVector2D & InPosition,
const FString & InNodeName,
bool bSetupUndoRedo,
bool bPrintPythonCommand
&41;
Remarks
Note: The functions below are scoped with WITH_EDITOR since we are considering to move this code into the runtime in the future. Right now there's a dependency on the metadata of the USTRUCT - which is only available in the editor. Adds a Function / Struct Node to the edited Graph. UnitNode represent a RIGVM_METHOD declaration on a USTRUCT. This causes a NodeAdded modified event.