| 78 | } |
| 79 | |
| 80 | void UFlowSubsystem::StartRootFlow(UObject* Owner, UFlowAsset* FlowAsset, const TScriptInterface<IFlowDataPinValueSupplierInterface> DataPinValueSupplier, const bool bAllowMultipleInstances) |
| 81 | { |
| 82 | if (FlowAsset) |
| 83 | { |
| 84 | if (UFlowAsset* NewFlow = CreateRootFlow(Owner, FlowAsset, bAllowMultipleInstances)) |
| 85 | { |
| 86 | NewFlow->StartFlow(DataPinValueSupplier.GetInterface()); |
| 87 | } |
| 88 | } |
| 89 | #if WITH_EDITOR |
| 90 | else |
| 91 | { |
| 92 | FMessageLog("PIE").Error(LOCTEXT("StartRootFlowNullAsset", "Attempted to start Root Flow with a null asset.")) |
| 93 | ->AddToken(FUObjectToken::Create(Owner)); |
| 94 | } |
| 95 | #endif |
| 96 | } |
| 97 | |
| 98 | UFlowAsset* UFlowSubsystem::CreateRootFlow(UObject* Owner, UFlowAsset* FlowAsset, const bool bAllowMultipleInstances, const FString& NewInstanceName) |
| 99 | { |