| 53 | } |
| 54 | |
| 55 | void 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 | |
| 85 | void UFlowNode_SubGraph::Cleanup() |
| 86 | { |
nothing calls this directly
no test coverage detected