can't include header files

for example i want to include PaperSpriteComponent and use it in my pawn based c++ class. When i properly include,compiler can’t find it.

#include Classes/PaperSpriteComponent.h”
and compiler throws this error :

C:\Users\XXX\Documents\Unreal Projects\twoD\Source\twoD\duck.h(8): fatal error C1083: Cannot open include file: ‘/Engine/Plugins/2D/Paper2D/Source/Paper2D/Classes/PaperSpriteComponent.h’: No such file or directory

Thing is i checked the path, and PaperSpriteComponent.h exist. Thanks in advance.

It’s:

#include "PaperSpriteComponent.h"

Also, don’t forget to included “Paper2D” in XXX.Build.cs?

1 Like