Announcement

Collapse
No announcement yet.

What do I have to include to use UPaperSpriteComponent?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    What do I have to include to use UPaperSpriteComponent?

    Hello,

    I want to use an UPaperSpriteComponent, but the API documentation does not show an include path at the bottom.
    So what do I have to do to be able to use an UPaperSpriteComponent?

    #2
    You need to include:


    <Project>.Build.cs:

    Code:
    PublicDependencyModuleNames.AddRange(new string[] { "Paper2D" });

    *.cpp, *.h:

    Code:
    #include "PaperSpriteComponent.h"

    Comment


      #3
      For starters you can go to the officals docs here: https://api.unrealengine.com/INT/API/ inside the search bar you can put any public class it will give you the module and the full path.

      Of course you can use visual studio, it is a shame I cannot tell ya how to do it with the normal visual studio tools because I don't use those anymore Lol , but with visual assist you can alt+g over a declaration and it will take you to the file, or shift + alt + q, it will give you options to import the header.

      Anyway I am pretty sure you can do that with raw VS but incredibly slow, main reason I forgot LOL

      Cheers

      Comment

      Working...
      X