GENERATED_BODY error

Is there any way to stop the error popping up for “GENERATED_BODY” when I need to add an additional #include header. Clicking ‘generate visual studio files’ is a temporary fix but I don’t want to keep doing that every time I add a new line of code. I cant seem to find a permanent fix anywhere.

Hey Dexterz Renegade,
It definitely is an annoying problem.

Make sure your generated include is at the bottom of the include list.

I am using Rider for unreal atm. It is a lot better at making sure these kinds of errors don’t happen.