RealDocs

UDataTableFunctionLibrary::GetDataTableColumnNameFromExportName

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

Description

Looks up the raw property name of a column given its friendly export name, returning whether a match was found.

Caveats & Gotchas

  • Returns false and leaves OutColumnName unset if no column matches ColumnExportName.
  • The OutColumnName it produces is what GetDataTableColumnAsString expects — the export name itself won't work there.

Signature

static bool GetDataTableColumnNameFromExportName(const UDataTable* Table, const FString& ColumnExportName, FName& OutColumnName);

Parameters

Name Type Description Default
Table const UDataTable* The DataTable to query.
ColumnExportName const FString& The friendly export name of the column to look up.
OutColumnName FName& Receives the raw property name of the matching column if found.

Return Type

bool

Example

Resolve an export name to a property name C++
FName ColumnName;
if (UDataTableFunctionLibrary::GetDataTableColumnNameFromExportName(MyTable, TEXT("Damage"), ColumnName))
{
	TArray<FString> Values = UDataTableFunctionLibrary::GetDataTableColumnAsString(MyTable, ColumnName);
}

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.