Header-only USTRUCT referenced in module's PrivatePCH not detected by UBT
So I'm trying to define a USTRUCT inside its own header file (LeapFrameData.h) and then reference that type inside the header for a seperate UCLASS (LeapInputComponent) inside a plugin module.
Regardless of where I place LeapFrameData.h, inside Private/ or Classes/, I have to manually #include that header in LeapInputComponent.h, even though LeapBlueprintSupportPrivatePCH.h already includes it and is present in LeapInputComponent.h (It's commented out in the below sample code). If that line is commented or missing then I get the following error from UBT:
LeapFrameData.generated.h is not generated in this scenario, either.
My understanding was we should put module-wide header files inside the *PrivatePCH file for the module (certainly the comments in the sample plugin indicate as much). If that's the case, I surely shouldn't also be having to manually #include it into a header that needs it, I should just be able to use PrivatePCH instead?
Ok, there are a couple issues here...
answered Apr 13 '14 at 03:32 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here