Create sprite component

Hello,

You can create a custom class, derived from Paper Sprite Component or Paper Sprite Actor from the editor just like any other class. However, please keep in mind that these classes come from Paper2D module, which may not be included to your project by default. To include it, please do the following:

  1. Go to Build.cs file of your project (YourProjectName\Source\ YourProjectName\ YourProjectName.Build.cs).

  2. In the file, find PublicDependencyModuleNames.AddRange command and add Paper2D to the list of included modules:

    PublicDependencyModuleNames.AddRange(new string[] { “Core”, “CoreUObject”, “Engine”, “InputCore”, “Paper2D” });

  3. Rebuild your project.

Now you can use the classes.

If you like to learn more about using sprites in Unreal Engine 4, please go here:

Hope this helped! Cheers!