How to use GetSprite()

It seems like the UPaperFlipbookComponent* is only forward-declared at that point.

Have you included “PaperFlipbookComponent.h” in your source file? I don’t know what the proper include path is right now, probably something like:

#include "Engine/PaperFlipbookComponent.h"