How to create a simple pointer to UFunction class?
The purpose of that is to have a function signature template used for automation of creating function graph in Blueprint Editor.
For now I have:
UFunction* myFun = NULL;
UEdGraph* NewGraph = FBlueprintEditorUtils::CreateNewGraph(Blueprint, TEXT("AbC"), UEdGraph::StaticClass(), UEdGraphSchema_K2::StaticClass());
FBlueprintEditorUtils::AddFunctionGraph<UFunction>(Blueprint, NewGraph, true, myFun);
myFun should be a UFunction pointer with specific signature (parameters and return value) to be used as a last parameter for AddFunctionGraph execution which will create new function graph from myFun as a template.
With NULL pointer the function is created as a void AbC();