| 1129 | } |
| 1130 | |
| 1131 | void UFlowAsset::TriggerCustomOutput(const FName& EventName) |
| 1132 | { |
| 1133 | if (NodeOwningThisAssetInstance.IsValid()) |
| 1134 | { |
| 1135 | // it's a SubGraph |
| 1136 | NodeOwningThisAssetInstance->TriggerOutput(EventName); |
| 1137 | } |
| 1138 | else |
| 1139 | { |
| 1140 | // it's a Root Flow, so the intention here might be to call event on the Flow Component |
| 1141 | if (UFlowComponent* FlowComponent = Cast<UFlowComponent>(GetOwner())) |
| 1142 | { |
| 1143 | FlowComponent->DispatchRootFlowCustomEvent(this, EventName); |
| 1144 | } |
| 1145 | } |
| 1146 | } |
| 1147 | |
| 1148 | void UFlowAsset::TriggerInput(const FGuid& NodeGuid, const FName& PinName, const FConnectedPin& FromPin) |
| 1149 | { |
no test coverage detected