Error for FAttachmentTransformRules
I'm trying to attach one character to another, for that I'm trying to use AttachToActor(). This is my implementation: On the header:
On the .cpp file:
Survivor is a variable that points to the other Character. But when I hit compile I get this error:
Anyone can point me on the right direction?
asked Jul 18 '18 at 04:00 PM in C++ Programming
The struct "FAttachmentTransformRules" does not have a default constructor, as the error is telling you, so you would be required to initialize it in your class's constructor or, in the header file, you could give it a default value ("FAttachmentTransformRules AttachRules = ...;"). The available defaults are listed in the "Constants" section of the documentation page.
answered Jul 18 '18 at 04:23 PMDarkwindRichard (suspended)
Follow this question
Once you sign in you will be able to subscribe for any updates here