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

Method GetFlowAssetEditor

Source/FlowEditor/Private/Graph/FlowGraphUtils.cpp:12–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#include "Toolkits/ToolkitManager.h"
11
12TSharedPtr<FFlowAssetEditor> FFlowGraphUtils::GetFlowAssetEditor(const UEdGraph* Graph)
13{
14 check(Graph);
15
16 TSharedPtr<FFlowAssetEditor> FlowAssetEditor;
17 if (const UFlowAsset* FlowAsset = Cast<const UFlowGraph>(Graph)->GetFlowAsset())
18 {
19 FlowAssetEditor = GetFlowAssetEditor(FlowAsset);
20 }
21 return FlowAssetEditor;
22}
23
24TSharedPtr<FFlowAssetEditor> FFlowGraphUtils::GetFlowAssetEditor(const UFlowAsset* FlowAsset)
25{

Callers

nothing calls this directly

Calls 3

IsValidMethod · 0.80
GetFunction · 0.50
GetFlowAssetMethod · 0.45

Tested by

no test coverage detected