So, I am wondering if there is a way to easily draw a custom image on a blueprint node? Ideally it would be something like a compact node, but have a preview in the same spot as the node title. I thought I could probably achieve it just by overriding something in UK2Node, but, apparently, the rendering code isn’t actually in the node class and I would have to dig quite a bit deeper into graph rendering. So if anyone knows a simple way to do it, that would be awesome
You need to create your own class, for example a child of SGraphNodeK2Base.
In this class you can create any visual.
You need the UpdateGraphNode function, it describes the widget tree from which the node is built.
I recommend using the Widget Reflector tool to quickly understand what elements the node widget is built from and how they look.
Then override the function CreateVisualWidget in your UK2Node and return SNew(CustomSNodeClass).