UDataTableFunctionLibrary::GetDataTableColumnAsString
#include "Kismet/DataTableFunctionLibrary.h"
Access: public
Specifiers: staticBlueprintCallable
Description
Exports every row's value for a single column as an array of strings, in row order, excluding the row name.
Caveats & Gotchas
- • PropertyName must be the raw property name, not the export/friendly name — resolve it first with GetDataTableColumnNameFromExportName if that's all you have.
- • Returns an empty array if PropertyName doesn't match any column on the row struct, rather than asserting or erroring.
Signature
static TArray<FString> GetDataTableColumnAsString(const UDataTable* DataTable, FName PropertyName); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| DataTable | const UDataTable* | The DataTable to export from. | — |
| PropertyName | FName | Raw property name of the column to export (as returned by GetDataTableColumnNames). | — |
Return Type
TArray<FString> Example
Dump a column as strings C++
TArray<FString> DamageValues = UDataTableFunctionLibrary::GetDataTableColumnAsString(MyTable, TEXT("Damage")); See Also
Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?