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

Method GetActionByChord

Source/FlowEditor/Private/FlowEditorCommands.cpp:143–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143TSharedPtr<FEdGraphSchemaAction> FFlowSpawnNodeCommands::GetActionByChord(const FInputChord& InChord) const
144{
145 if (InChord.IsValidChord())
146 {
147 for (const TPair<UClass*, TSharedPtr<FUICommandInfo>>& NodeCommand : NodeCommands)
148 {
149 if (NodeCommand.Value.Get()->HasActiveChord(InChord))
150 {
151 return GetActionByClass(NodeCommand.Key);
152 }
153 }
154 }
155
156 return TSharedPtr<FEdGraphSchemaAction>();
157}
158
159TSharedPtr<FEdGraphSchemaAction> FFlowSpawnNodeCommands::GetActionByClass(UClass* NodeClass) const
160{

Callers 1

Calls 1

GetMethod · 0.80

Tested by

no test coverage detected