RealDocs

UDataTableFunctionLibrary::DoesDataTableRowExist

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

Description

Returns whether Table contains a row named RowName.

Caveats & Gotchas

  • Row name lookups are case-insensitive, so "Row1" and "row1" match the same row.
  • Cheaper than calling GetDataTableRowFromName and checking the return value when all you need is existence, not the row's data.

Signature

static bool DoesDataTableRowExist(const UDataTable* Table, FName RowName);

Parameters

Name Type Description Default
Table const UDataTable* The DataTable to check.
RowName FName Name of the row to check for.

Return Type

bool

Example

Guard a row lookup C++
if (UDataTableFunctionLibrary::DoesDataTableRowExist(MyTable, TEXT("Rifle")))
{
	// safe to fetch the row
}

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.