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

Method TriggerCustomInput_FromSubGraph

Source/Flow/Private/FlowAsset.cpp:1096–1107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1094}
1095
1096void UFlowAsset::TriggerCustomInput_FromSubGraph(UFlowNode_SubGraph* SubGraphNode, const FName& EventName) const
1097{
1098 // NOTE (gtaylor) Custom Input nodes cannot currently add data pins (like Start or DefineProperties nodes can)
1099 // but we may want to allow them to source parameters, so I am providing the subgraph node as the
1100 // IFlowDataPinValueSupplierInterface when triggering the node (even though it's not used at this time).
1101
1102 const TWeakObjectPtr<UFlowAsset> FlowInstance = ActiveSubGraphs.FindRef(SubGraphNode);
1103 if (FlowInstance.IsValid())
1104 {
1105 FlowInstance->TriggerCustomInput(EventName, SubGraphNode);
1106 }
1107}
1108
1109void UFlowAsset::TriggerCustomInput(const FName& EventName, IFlowDataPinValueSupplierInterface* DataPinValueSupplier)
1110{

Callers 1

ExecuteInputMethod · 0.80

Calls 2

IsValidMethod · 0.80
TriggerCustomInputMethod · 0.80

Tested by

no test coverage detected