How do I add a node to a blueprint with C++

After days of fumbling around I’m pretty sure this is the solution:

class UBlueprintNodeSpawner* Spawner;|

UK2Node_CallFunction NodeClass;|
NodeClass.SetFromFunction();|
Spawner->NodeClass = NodeClass;

But “setFromFunction” requires a “UFUNCTION” variable, and I have no idea the syntax to pass that through.

Say, for example the Ufunction I want to spawn is “static UBlueprint* CreateBlueprint”, what’s the syntax? I’ve tried just the function name, with quotes, with &&, etc.

and