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

Method OnClick

Source/FlowEditor/Private/Find/FindInFlow.cpp:118–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118FReply FFindInFlowResult::OnClick(TWeakPtr<class FFlowAssetEditor> FlowAssetEditorPtr)
119{
120 if (GraphNode.IsValid())
121 {
122 if (UEdGraph* Graph = GraphNode->GetGraph())
123 {
124 if (UFlowAsset* Asset = Cast<UFlowAsset>(Graph->GetOuter()))
125 {
126 GEditor->GetEditorSubsystem<UAssetEditorSubsystem>()->OpenEditorForAsset(Asset);
127 if (TSharedPtr<FFlowAssetEditor> Editor = FFlowGraphUtils::GetFlowAssetEditor(Graph))
128 {
129 Editor->JumpToNode(GraphNode.Get());
130 }
131 }
132 }
133 }
134 else if (OwningFlowAsset.IsValid())
135 {
136 GEditor->GetEditorSubsystem<UAssetEditorSubsystem>()->OpenEditorForAsset(OwningFlowAsset.Get());
137 }
138 return FReply::Handled();
139}
140
141FReply FFindInFlowResult::OnDoubleClick() const
142{

Callers 1

Calls 3

IsValidMethod · 0.80
JumpToNodeMethod · 0.80
GetMethod · 0.80

Tested by

no test coverage detected