Actually I was mistaken, it still is not detecting the file. I thought it was, but it was just because I added a forward declaration.
Now I am getting an error when I try to actually use the Component.
(Output: )
AbilityComponent.h(42): error : Unrecognized type ‘HealthComponent’ - type must be a UCLASS, USTRUCT or UENUM
When I hover over in VS it says
“pointer to incomplete class type “HealthComponent” is not allowed.”
It seems to be sort of finding it because the errors change if I remove the Include, but it doesn’t seem to be properly linking to the class either, since it is not recognizing it. It is a UCLASS as well btw.