I use Cpp 2019, want to call in a FlipBook resource. But I failed.
the code is the follow:
static ConstructorHelpers::FObjectFinderBirdFlipBook(TEXT(“E: / UE4 / FlappyBird / Content / FlappyBird / FlipBooks / Birds / PFB_BlueBird.uasset”));
I compile failed , which ouput the Question as follow:
2>C:\Program Files\Epic Games\UE_4.27\Engine\Source\Runtime\CoreUObject\Public\UObject/ConstructorHelpers.h(110): error C2664: “void ConstructorHelpers::ValidateObject(UObject *,const FString &,const TCHAR *)”: 无法将参数 1 从“T *”转换为“UObject *”
2> with
2> [
2> T=UPaperFlipbook
2> ]
I cannot find the problem…