We have these in Houdini in various contexts for exactly the purpose you describe: Avoiding a large unwieldy node network where a snippet of code will do. Also not intended for large code blocks. We use them to encapsulate a little python or VEX script. We call them “wrangler” nodes. +1 for something similar in Blueprint.
Yes, something similar to Houdini’s wrangler node extension would be pretty cool.
So you can add a function node to a blueprint, where the function pins still behave as is, but the graph become a text editor that you can only call existing functions(available in context) and operations.
somthing similar to what game maker 2 dose.
this is something that would make the engine a perfect coding software. unfortunately there is NO way to do this and no plugin. you have to go through the hell of making a 2 way project and constantly fix things because even this isn’t actually supposed to be an intended thing.