MCPcopy Create free account
hub / github.com/MothCocoon/FlowGraph / TriggerCustomInput

Method TriggerCustomInput

Source/Flow/Private/FlowAsset.cpp:1109–1129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1107}
1108
1109void UFlowAsset::TriggerCustomInput(const FName& EventName, IFlowDataPinValueSupplierInterface* DataPinValueSupplier)
1110{
1111 for (UFlowNode_CustomInput* CustomInputNode : CustomInputNodes)
1112 {
1113 if (CustomInputNode->EventName == EventName)
1114 {
1115 RecordedNodes.Add(CustomInputNode);
1116
1117 // NOTE (gtaylor) Custom Input nodes cannot currently add data pins (like Start or DefineProperties nodes can)
1118 // but we may want to allow them to source parameters, so I am providing the subgraph node as the
1119 // IFlowDataPinValueSupplierInterface when triggering the node (even though it's not used at this time).
1120
1121 if (IFlowNodeWithExternalDataPinSupplierInterface* ExternalPinSuppliedNode = Cast<IFlowNodeWithExternalDataPinSupplierInterface>(CustomInputNode))
1122 {
1123 ExternalPinSuppliedNode->SetDataPinValueSupplier(DataPinValueSupplier);
1124 }
1125
1126 CustomInputNode->ExecuteInput(EventName);
1127 }
1128 }
1129}
1130
1131void UFlowAsset::TriggerCustomOutput(const FName& EventName)
1132{

Calls 2

ExecuteInputMethod · 0.45

Tested by

no test coverage detected