Header File Include Errors (example: DrawDebugHelpers.h)

I typically try to include all the necessary libraries in my header file, not the .cpp itself.

However, as we’re writing these various components, I’m noticing that those includes are seemingly arbitrarily breaking type and member functions within the template Unreal has already generated - so you get those squiggly red underlines in VS.

I’m aware that the CoreMinimal.h include needs to be at the top, and your related .cpp .generated.h include needs to be at the bottom, but there are times when (to fix this) I’m doing nothing more than closing VS and reopening, or changing the position of the include among others.

Anyone else seeing this?

Privacy & Terms