Extract to function

It would be very nice if we could have the abilty to select some chunk of blueprint code, make a right click on it, and have an “Extract to funcion” Option.
This will create a new function with the selected code, adding the corresponding Inputs and Outputs, and replace the selected code with the new created function.

Thanks a lot!

It is called “Collapse to Function” and already exists, exactly like you describe; right click selected nodes and the collapse option is there…

1 Like

ooh my, I never used / saw that, thanks Bruno.
This thread should be deleted.

1 Like

No, it should be left right here so it can be found by others with the same question, who also didn’t realize it already existed… like me :smiley:

1 Like

I’m glad it wasn’t because it helped me realize I was confused by some terminology. A lecturer was telling me to Right-Click > Extract to Function, not realizing Collapse to Function does the same thing. Thanks!