At the start of the year I built a new computer and forgot to back up my Unreal projects before migrating over, so I’m using this as an opportunity to re-learn how I did what I did and why. An issue I’ve encountered is when I need to swap the values of two variables, as seen in the screenshot below.
But since this is so simple and common, I don’t want to create a new function every time I need to use a local variable for temporary storage. Nor do I want to create proper blueprint variables when they’re only going to be used once, and aren’t modified by child blueprints.
So, as the title asks: is there a node that can effectively swap the values of two or more variables? Alternatively, is there a way to store the current value of one or more variables, that doesn’t involve a local variable? And if so, how do I use it?