Not that in UE4.17 the includes for PaperSprite.h and Kismet/BlueprintFunctionLibrary.h must be removed from the .cpp file