C++ inside a blueprint

It’d be nice if you could switch to coding within a blueprint. I almost exclusively use blueprints because it’s easier to make changes / debug / preview things in the editor, but when you’re doing a lot of logic or maths it gets messy with hundreds of math nodes around. Obviously it’d be possible to switch over to C++, but that would mean extending classes and recompiling and such.

IE. If there could be a “code” node, or maybe a specific type of function (so it has inputs and outputs like normal functions) where you can just type out as if it was C++ or another language, and the editor / engine converts that to blueprint (so it’d still work immediately without needing compiling, it’d just be an alternative interface that uses words instead of nodes).

Just a thought.

You cant do that directly, but there is nothing stopping you from creating an empty class, then setting that class as the parent of your blueprint. and then implement the functions you need individually in c++, you can then use them on your blueprint.
Or you could create a utility blueprint class, a Blueprint Library, and just create your functions there, and then use them as nodes.