I've been trying to make a QTE system that has nodes representing each type of button interactions (holding the button down, pressing, tapping, etc) which can all behave very differently. These are strung into a sequence inside a "Action" class.
The action class is used for the player to pick their attack, so the action class needs to remain intact through the process.
Right now, when I pass the list of QTE button interactions to the button handler, it deletes the button interactions from the action class, which I don't want. .duplicate() does create new nodes, but the member variables including the buttons I want pressed are not copied over.
I can't just straight go through each member in order, directly copying values since different button interactions have different members.
Is there a way to copy instanced nodes along with their members? I seem to think this would come up a lot, as generally when you make an item in games you copy the item rather than completely remake it from scratch.
Thanks in advance.