FTableRowBase
#include "Engine/DataTable.h" Description
The required base struct for all data table row types. Subclass it with UPROPERTY-tagged fields to define the columns of a UDataTable.
Signature
struct FTableRowBase Caveats & Gotchas
- • Every UPROPERTY in the struct becomes a column in the data table. Properties must use types supported by the CSV/JSON importer.
- • Override OnPostDataImport() to validate or fix up data after a reimport without modifying the source CSV.
- • Structs used as row types cannot be nested inside classes — they must be at global scope with a USTRUCT macro.
Example
Define a data table row struct C++
USTRUCT(BlueprintType)
struct FEnemyRow : public FTableRowBase
{
GENERATED_BODY()
UPROPERTY(EditAnywhere, BlueprintReadOnly)
float MaxHealth = 100.f;
UPROPERTY(EditAnywhere, BlueprintReadOnly)
float MoveSpeed = 300.f;
UPROPERTY(EditAnywhere, BlueprintReadOnly)
TSoftObjectPtr<USkeletalMesh> Mesh;
}; See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?