Do we still need to include Paper2D as a module in UE5?

Hi Everyone,
Just a quick question about trying to include Paper2D in UE5.

I found This Post explaining how to add the Paper2D Module to UE for use in C++ code, and it seems like simply adding an #include “PaperSprite.h” is not enough (I get “: fatal error C1083: Cannot open include file: ‘PaperSprite.h’: No such file or directory” when I try).

However, when I was searching for the Build.cs file in the SolutionExplorer, I noticed that Paper2D appears as a Plugin already.

Paper2D as a Plugin

My question is, do I still need to include the module as the other forum post explains in UE5 or has it changed since then? I can’t seem to find any mention of it in the official docs so I just thought I would get clarification for it.

Normally I would just deal with sprites in Blueprints but I am making an inventory system and want to have a reference to a Sprite stored in a C++ var, so maybe importing the whole Paper2D module is overkill for what I am trying to do.

Thanks.

Seems like just including PaperSprite.h is enough for what I need.

1 Like

How did you include that because for me even the simple version of it wont work.

If anyone is experiencing this problem, try executing an option such as generate visual studio in a file with the extension uproject, and then run the project in visual studio. It seems to me that it is a sln issue.