I’m learning programming by UE4’s video in youtube,but I got an error,the video is
my code is:
.h
UPROPERTY(VisibleAnywhere, BlueprintReadWrite)
class UStaticMeshComponent* PickupMesh;
FORCEINLINE class UStaitcMeshComponent* GetMesh();
.cpp
class UStaitcMeshComponent * APickUp::GetMesh()
{
return PickupMesh;
}
I find the error is "return can not convert UStaticMeshComponent* to UStaticMeshComponent*"I think both of them are the same type,why there is the error?