When trying to compile my code I get the error:
0>MassEnemy.generated.h(10,1): Error C1189 : #error: “MassEnemy.generated.h already included, missing ‘#pragma once’ in MassEnemy.h”
But #pragma once is there. I know this error can be caused by a bad include , but I’ve checked the includes and there’s no unused ones or reoccurring ones. Is there anything else that can cause this error?
If you disable the Unity build through your module’s build.cs, you can narrow down to what cpp is being compiled. That might help narrow things down.
You could also search for “MassEnemy.generated.h” in case you’ve accidentally included it somewhere else by mistake.
That’s about as much as I can help without seeing any of the code or the full error text.
Turns out I did have MassEnemy.generated.h included somewhere else! Thank you for your help!