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

Method StartRootFlow

Source/Flow/Private/FlowSubsystem.cpp:80–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void 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
98UFlowAsset* UFlowSubsystem::CreateRootFlow(UObject* Owner, UFlowAsset* FlowAsset, const bool bAllowMultipleInstances, const FString& NewInstanceName)
99{

Callers

nothing calls this directly

Calls 1

StartFlowMethod · 0.80

Tested by

no test coverage detected