Generated_Body macro showing error

In the header file the GENERATED_BODY() has an error.See the images for more details. I have tried everything - regenerated the project, made a new project, deleted the unreal installation, deleted epic games and installed the latest version of launcher and unreal, updated visual studio but still the error has not been fixed.

If you get error in there tht means there something with generated code, or you do something that mess ups UHT.

What error do you get exactly? But please give error from compiler not IntelliSense (aka hover over code)

Does it compile?

There is a known bug with IntelliSense marking things that are not an error. (will be fixed in 4.20.2)

Yes , it does compile.

Thank you so much for this info, the errors were driving me NUTS!

In 4.22 (where I still got this problem) I found this fixed it:

Solution Explorer → Right-click your game project → Rescan Solution.

Took about a minute but cleaned up the squiggles.

1 Like