UDataTableFunctionLibrary::ExportDataTableToCSVString
#include "Kismet/DataTableFunctionLibrary.h"
Access: public
Specifiers: staticBlueprintCallable
Description
Serializes the contents of a Data Table to a CSV-formatted string in memory. Editor-only — useful for editor tooling that needs the data without writing to disk.
Caveats & Gotchas
- • Only compiles with WITH_EDITOR — not available in packaged builds.
- • Column ordering and quoting follow the same CSV export rules as the editor's own DataTable CSV export, so round-tripping through FillDataTableFromCSVString is safe but hand-editing the string is error-prone for fields containing commas or newlines.
- • For large tables, prefer ExportDataTableToCSVFile to avoid holding the entire export in a single FString.
Signature
static bool ExportDataTableToCSVString(const UDataTable* DataTable, FString& OutCSVString); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| DataTable | const UDataTable* | The table to export. | — |
| OutCSVString | FString& | Receives the CSV-formatted contents of the table. | — |
Return Type
bool Example
Get CSV text for logging or clipboard C++
FString CSVOut;
if (UDataTableFunctionLibrary::ExportDataTableToCSVString(MyDataTable, CSVOut))
{
UE_LOG(LogTemp, Log, TEXT("%s"), *CSVOut);
} See Also
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?