You know how you Right click on a graph, and select a node, and that node is added to the graph?
I’m trying to call the function that adds the selected “function node” to the graph.
I’m pretty sure it’s “UBlueprintFunctionNodeSpawner::Create(TSubclassOf<UK2Node_CallFunction> NodeClass, UFunction const* const Function, UObject* Outer/* = nullptr*/)”
To create the “node spawner” and
UBlueprintFunctionNodeSpawner::Invoke(UEdGraph* ParentGraph, FBindingSet const& Bindings, FVector2D const Location) const
To actually spawn the node on the graph.
The two parts of the syntax I don’t understand:
the “UFunction” variable, how do I set it to the function I want, like “Add Triangle to Mesh”?
And “Bindings” variable, I can’t figure out what I’m supposed to pass (and how)