How to generate a Blueprint / BlueprintGraph using C++?
I would like to generate a blueprint using C++. Not just a blueprint node, or expose a C++ function for blueprints. But an entire graph with nodes, connections, pins, comments, etc created.
The reason I would like to do this is that I would like to have blueprints for things like their visual debugging. And am in a scenario where I believe 90% of the blueprint creation work could be done programmatically. But would like to have actual blueprints so that other members of my team could edit / reference the blueprint for that last 10%.
After looking around I could not find much info on how to do this other than that the class: https://docs.unrealengine.com/latest/INT/API/Editor/BlueprintGraph/index.html must be used. To give some context, I am interested in generating animation blueprints. So I believe the specific class I need is: https://docs.unrealengine.com/latest/INT/API/Editor/AnimGraph/index.html.
I haven't found any examples of people doing this before. Does anyone have references or tutorials on how to do this? (So I don't have to trial-and-error the classes above). Particularly concerned about how to connect nodes, as from the link above it is not immediately obvious.
Note: Asking this question a bit prematurely in case anyone has a tutorial or know-how handy. I am in the process of trying this out. Once I figured it out I'll try to post my solution since it's been hard to find one on the web. That being said any hints in the right direction are appreciated.
asked Sep 03 '17 at 03:33 PM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here