UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
DataTableUtils Namespace Reference

Functions

ENGINE_API FString AssignStringToPropertyDirect (const FString &InString, const FProperty *InProp, uint8 *InData)
 
ENGINE_API FString AssignStringToProperty (const FString &InString, const FProperty *InProp, uint8 *InData)
 
ENGINE_API FString GetPropertyValueAsStringDirect (const FProperty *InProp, const uint8 *InData, const EDataTableExportFlags InDTExportFlags)
 
ENGINE_API FString GetPropertyValueAsString (const FProperty *InProp, const uint8 *InData, const EDataTableExportFlags InDTExportFlags)
 
ENGINE_API FText GetPropertyValueAsTextDirect (const FProperty *InProp, const uint8 *InData)
 
ENGINE_API FText GetPropertyValueAsText (const FProperty *InProp, const uint8 *InData)
 
ENGINE_API TArray< FNameGetStructPropertyNames (const UStruct *InStruct)
 
ENGINE_API FName MakeValidName (const FString &InString)
 
ENGINE_API bool IsSupportedTableProperty (const FProperty *InProp)
 
ENGINE_API FString GetPropertyExportName (const FProperty *Prop, const EDataTableExportFlags InDTExportFlags=EDataTableExportFlags::None)
 
ENGINE_API TArray< FString > GetPropertyImportNames (const FProperty *Prop)
 
ENGINE_API void GetPropertyImportNames (const FProperty *Prop, TArray< FString > &OutResult)
 
ENGINE_API FText GetPropertyDisplayName (const FProperty *Prop, const FString &DefaultName)
 
ENGINE_API TArray< FString > GetColumnDataAsString (const UDataTable *InTable, const FName &PropertyName, const EDataTableExportFlags InDTExportFlags)
 
ENGINE_API bool AddRowJSON (UDataTable &InDataTable, const FString &InJSONData, TArray< FString > &OutProblems, bool bRemoveDuplicate=false, FName *OutRowName=nullptr)
 

Function Documentation

◆ AddRowJSON()

bool DataTableUtils::AddRowJSON ( UDataTable InDataTable,
const FString &  InJSONData,
TArray< FString > &  OutProblems,
bool  bRemoveDuplicate = false,
FName OutRowName = nullptr 
)

Add a row from a json format to a datatable

◆ AssignStringToProperty()

FString DataTableUtils::AssignStringToProperty ( const FString &  InString,
const FProperty InProp,
uint8 InData 
)

Util to assign a value (given as a string) to a struct property. When the property is a static sized array, this will split the string and assign the split parts to each element in the array.

◆ AssignStringToPropertyDirect()

FString DataTableUtils::AssignStringToPropertyDirect ( const FString &  InString,
const FProperty InProp,
uint8 InData 
)

Util to assign a value (given as a string) to a struct property. This always assigns the string to the given property without adjusting the address.

◆ GetColumnDataAsString()

TArray< FString > DataTableUtils::GetColumnDataAsString ( const UDataTable InTable,
const FName PropertyName,
const EDataTableExportFlags  InDTExportFlags 
)

Output each row for a specific column/property in the table (doesn't include the title)

◆ GetPropertyDisplayName()

FText DataTableUtils::GetPropertyDisplayName ( const FProperty Prop,
const FString &  DefaultName 
)

Util to get the localized display name of a given property.

◆ GetPropertyExportName()

FString DataTableUtils::GetPropertyExportName ( const FProperty Prop,
const EDataTableExportFlags  InDTExportFlags = EDataTableExportFlags::None 
)

Util to get the friendly display unlocalized name of a given property for export to files.

◆ GetPropertyImportNames() [1/2]

TArray< FString > DataTableUtils::GetPropertyImportNames ( const FProperty Prop)

Util to get the all variants for export names for backwards compatibility.

◆ GetPropertyImportNames() [2/2]

void DataTableUtils::GetPropertyImportNames ( const FProperty Prop,
TArray< FString > &  OutResult 
)

◆ GetPropertyValueAsString()

FString DataTableUtils::GetPropertyValueAsString ( const FProperty InProp,
const uint8 InData,
const EDataTableExportFlags  InDTExportFlags 
)

Util to get a property as a string. When the property is a static sized array, this will return a string containing each element in the array.

◆ GetPropertyValueAsStringDirect()

FString DataTableUtils::GetPropertyValueAsStringDirect ( const FProperty InProp,
const uint8 InData,
const EDataTableExportFlags  InDTExportFlags 
)

Util to get a property as a string. This always gets a string for the given property without adjusting the address.

◆ GetPropertyValueAsText()

FText DataTableUtils::GetPropertyValueAsText ( const FProperty InProp,
const uint8 InData 
)

Util to get a property as text (this will use the display name of the value where available - use GetPropertyValueAsString if you need an internal identifier). When the property is a static sized array, this will return a string containing each element in the array.

◆ GetPropertyValueAsTextDirect()

FText DataTableUtils::GetPropertyValueAsTextDirect ( const FProperty InProp,
const uint8 InData 
)

Util to get a property as text (this will use the display name of the value where available - use GetPropertyValueAsString if you need an internal identifier). This always gets a string for the given property without adjusting the address.

◆ GetStructPropertyNames()

TArray< FName > DataTableUtils::GetStructPropertyNames ( const UStruct InStruct)

Util to get all property names from a struct.

◆ IsSupportedTableProperty()

bool DataTableUtils::IsSupportedTableProperty ( const FProperty InProp)

Util to see if this property is supported in a row struct.

◆ MakeValidName()

FName DataTableUtils::MakeValidName ( const FString &  InString)

Util that removes invalid chars and then make an FName.