C++: How do you transfer a struct from one class to the other?

what do you mean by transfer?

Hi, I think my title should explain everything.


My PlayerController has a struct and I want to transfer it to another class. The struct is relatively big so I don’t want to tranfer every variable of the struct alone. So how can I achieve that? Pls with example code.

In my case: I want to save my struct in my SaveSysem, so I need to transfer/copy the variable to the SaveSystem class.

If I am correct into assuming you simply want to use your struct in a different, just include the class with the struct in the header and make your struct variable like you would any other variable.

Ok thx. I tried it again and it worked