How to move functions from one class to another?

Hi there,

Sometimes I have to do some refactoring. Currently I’d like to move some complex functions with many local variables and such to another class. I can copy & paste the nodes, but the local variables along with there descriptions and default values are lost.

What is the most efficient way to move blueprint code between classes?

Thank you,

I don’t think so, if there no copy when you right click function then no. If your function does not interact with object itself, you could move those functions to blueprint library, you could also make “target” argument so you can input object you want to effect. You might also consider relating classes if that possible put functions in base class and other class will inherent.

Thank you, but I’m afraid this won’t work here. I just want to move many code from my pawn to the game mode.

In any other language I would just copy/paste the code, but that doesn’t work for variables, only for the nodes itself.