are we creating the BarrelToSet-pointer at this time?
What exactly is happening when we take in parameters in our methods like this? Somehow I have come to this point in the course and not understand this.
So when we call the function from blueprint, the pointer is created, and when we plug in the barrel reference node, it feeds this pointer the memory location of the barrel static mesh?
I think you might be confusing pointers. In this case there’s no additional memory allocation on the heap, the Barrel in the BP is basically a pointer, and passes it’s memory address to the function made in CPP.