RealDocs

UDataTableFunctionLibrary::AddDataTableRow

function Engine Blueprint Since unknown
#include "Kismet/DataTableFunctionLibrary.h"
Access: public Specifiers: staticBlueprintCallableCustomThunk

Description

Adds a row with the given name and data to a Data Table. Editor-only — used for building or modifying tables from editor scripts.

Caveats & Gotchas

  • Only compiles with WITH_EDITOR — not available in packaged builds.
  • In C++ this is CustomThunk-backed; RowData must be a struct instance matching the table's assigned row struct, not an arbitrary FTableRowBase — passing a mismatched struct type is undefined behaviour rather than a caught error.
  • If RowName already exists in the table, the existing row's data is overwritten silently rather than the call failing.

Signature

static void AddDataTableRow(UDataTable* const DataTable, const FName& RowName, const FTableRowBase& RowData);

Parameters

Name Type Description Default
DataTable UDataTable* const The table to add the row to.
RowName const FName& Name to assign to the new row.
RowData const FTableRowBase& Row data matching the table's row struct, passed as a wildcard/custom-structure pin in Blueprint.

Return Type

void

Example

Add a row via a matching row struct C++
FMyItemRow NewRow;
NewRow.DisplayName = TEXT("Health Potion");
NewRow.Value = 25;
UDataTableFunctionLibrary::AddDataTableRow(MyDataTable, TEXT("HealthPotion"), NewRow);

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.