Header and CPP file no longer communicating properly?

So I am having issues with really basic stuff all of a sudden.
My header doesn’t detect function definitions, and my .cpp doesn’t detect variable declarations in the header.



I’ve tried cleaning and rebuilding, deleting the intermediate and binaries and rebuilding the project files, but still no luck.

Of note, this is on UE5, so the engine automatically seperates headers and cpp’s into seperate folders, if that’s relevant.

SetDirection is declared in the header inside the class. In the cpp you implement it using ClassName::SetDirection. What you’ve done is defined a function in the cpp called SetDirection which is not inside any class.

2 Likes

Oh, duh.

I blame low bloodoxygen! :sweat_smile: