Extra directory level needed for .h files

As of recently, I’ve noticed that many of my classes in private need an extra folder name in the include statement if their header is public, eg. “public/example.h” as opposed to “example.h.” I know for sure that these exact situations have not previously required the higher directory name.

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

https://epicsupport.force.com/unrealengine/s/

Thanks

Make sure you have this in module build script (*.build.cs)

	PublicIncludePaths.AddRange(
		new string[] {
			"YourModuleName/Public"
			
			
		}
		);
			
	
	PrivateIncludePaths.AddRange(
		new string[] {
			"YourModuleName/Private"
			
			
		}
		);

If you don’t know what module name is, it is folder name in Source the cs file should also be named after it