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

Method ExecuteInput

Source/Flow/Private/Nodes/Graph/FlowNode_SubGraph.cpp:55–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void UFlowNode_SubGraph::ExecuteInput(const FName& PinName)
56{
57 if (CanBeAssetInstanced() == false)
58 {
59 if (Asset.IsNull())
60 {
61 LogError(TEXT("Missing Flow Asset"));
62 }
63 else
64 {
65 LogError(FString::Printf(TEXT("Asset %s cannot be instance, probably is the same as the asset owning this SubGraph node."), *Asset.ToString()));
66 }
67
68 Finish();
69 return;
70 }
71
72 if (PinName == TEXT("Start"))
73 {
74 if (GetFlowSubsystem())
75 {
76 GetFlowSubsystem()->CreateSubFlow(this);
77 }
78 }
79 else if (!PinName.IsNone())
80 {
81 GetFlowAsset()->TriggerCustomInput_FromSubGraph(this, PinName);
82 }
83}
84
85void UFlowNode_SubGraph::Cleanup()
86{

Callers

nothing calls this directly

Calls 5

GetFlowAssetFunction · 0.85
ToStringMethod · 0.80
CreateSubFlowMethod · 0.80
IsNoneMethod · 0.80

Tested by

no test coverage detected