I’m trying to follow along with the tutorial here: Data Driven Gameplay Elements in Unreal Engine | Unreal Engine 5.2 Documentation
I’ve created a file called ‘LevelUpData.h’ and placed it here: [Project]/Source/[Module]/Public
It contains the same content from the above page:
/** Structure that defines a level up table entry */
#pragma once
#include "Engine/DataTable.h"
#include "LevelUpData.generated.h"
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;
};
And yet, when I try to import a CSV file, there are only the standard two options under ‘Choose DataTable Row Type’: GameplayTagTableRow and AttributeMetaData
So obviously, the custom table rows haven’t registered properly.
What am I doing wrong?
Thanks!