I get the C++ error saying “=”: Function as left operand, which I can’t seem to figure out how to solve. Any help from you guys? Thank you ahead of time.
Where Child and Parent are both USceneComponents. The FAttachmentTransformRules is a Struct that specifies what happens when you attach it (for example if it stays where it is or moves to the parent, wether the scale stays the same and so on). You can either create one of these structs and set the members like this:
The FAttachmentTransformRules won’t compile if you don’t use the constructor. For my case, I used the constructor which takes in the location rule, rotation rule, scale rule, and a bool for bWeldSimulatedBodies and it works.