EDIT: found i needed to extend from the datatable C++
However i cant create new C++ files.
This is a blank C++ Project and when adding code to the project extending the DataTable object i am presented with this error.
FIXED
I’m trying to import a data table for blueprint and I’m having trouble setting it up.
I have gone over the tutorial for it but I’m struggling with the C++ setup, i know basic code but haven’t looked at C++ I’m UE4 before.
I’m quite sure my problem is getting the correct parent class when adding C++ content to my project, has anyone set this up before that can point me in the correct direction.
The code from the example is
/** Structure that defines a level up table entry */
USTRUCT(BlueprintType)
struct FLevelUpData : public FTableRowBase
{
GENERATED_USTRUCT_BODY()
public:
FLevelUpData()
: XPtoLvl(0)
, XP(0)
{}
/** The 'Name' column is the same as the XP Level */
/** XP to get to the given level from the previous level */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=LevelUp)
int32 XPtoLvl;
/** This was the old property name (represented total XP) */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=LevelUp)
int32 XP;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=LevelUp)
TAssetPtr<UTexture> Asset;
};