Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Engine/DataTable.h |
Include |
#include "Engine/DataTable.h" |
class UDataTable : public UObject
Imported spreadsheet table.
Name | Description | ||
---|---|---|---|
|
TObjectPtr< cla... |
AssetImportData |
The file this data table was imported from, may be empty |
|
uint8: 1 |
bIgnoreExtraFields |
Set to true to ignore extra fields in the import data, if false it will warn about them |
|
uint8: 1 |
bIgnoreMissingFields |
Set to true to ignore any fields that are expected but missing, if false it will warn about them |
|
uint8: 1 |
bStripFromClientBuilds |
Set to true to not cook this data table into client builds. |
|
friend |
FDataTableEditorUtils |
|
|
friend |
FDataTableImporterCSV |
|
|
friend |
FDataTableImporterJSON |
|
|
ImportKeyField |
Explicit field in import data to use as key. |
|
|
RowMap |
Map of name of row to row data structure. |
|
|
TArray< uint8 > |
RowsSerializedWithTags |
When RowStruct is being modified, row data is stored serialized with tags |
|
TObjectPtr< USc... |
RowStruct |
Structure to use for each row of the table, must inherit from FTableRowBase |
|
RowStructPathName |
The name of the RowStruct we were using when we were last saved |
|
|
TemporarilyReferencedObjects |
||
|
friend |
UGameplayTagTableManager |
Name | Description | |
---|---|---|
|
UDataTable ( |
Name | Description | |
---|---|---|
|
~UDataTable() |
Name | Description | ||
---|---|---|---|
|
void |
AddReferencedObjects ( |
|
|
void |
AddRow ( |
Copies RowData into table. |
|
void |
AddRowInternal ( |
Called to add rows to the data table |
|
bool |
AllowDuplicateRowsOnImport() |
Returns true if it is valid to import multiple table rows with the same name; returns false otherwise |
|
void |
CleanBeforeStructChange() |
|
|
bool |
CopyImportOptions ( |
Copies all the import options from another table, this does not copy row dawta |
|
CreateTableFromCSVString ( |
Create table from CSV style comma-separated string. |
|
|
CreateTableFromJSONString ( |
Create table from JSON style string. RowStruct must be defined before calling this function. |
|
|
CreateTableFromOtherTable ( |
Create table from another Data Table |
|
|
CreateTableFromRawData ( |
Create table from a raw data map with a given script struct |
|
|
void |
EmptyTable() |
Empty the table info (will not clear RowStruct) |
|
T * |
FindRow ( |
Function to find the row of a table given its name. |
|
T * |
FindRow |
|
|
uint8 * |
FindRowUnchecked ( |
High performance version with no type safety |
|
FProperty &#... |
FindTableProperty ( |
Returns the column property where PropertyName matches the name of the column property. |
|
void |
ForeachRow ( |
|
|
void |
ForeachRow ( |
Perform some operation for every row. |
|
void |
GetAllRows |
|
|
void |
GetAllRows |
Get all of the rows in the table, regardless of name |
|
GetColumnTitles() |
Get an array of all the column titles, using the friendly display name from the property |
|
|
UScriptStruc... |
GetEmptyUsingStruct() |
|
|
GetNonConstRowMap() |
TODO: remove this, it is temporarily here to allow DataTableEditorUtils to compile until I get around to updating functions like RemoveRow and RenameRow. |
|
|
const TMap< ... |
GetRowMap() |
|
|
const TMap< ... |
GetRowMap() |
|
|
GetRowNames() |
||
|
const UScrip... |
GetRowStruct() |
|
|
FTopLevelAss... |
GetRowStructPathName() |
|
|
GetTableAsCSV ( |
Output entire contents of table as CSV |
|
|
GetTableAsJSON ( |
Output entire contents of table as JSON |
|
|
GetTableAsString ( |
Output entire contents of table as a string |
|
|
GetTableData ( |
Get array for each row in the table. The first row is the titles |
|
|
GetTablePropertyArray |
Get array of UProperties that corresponds to columns in the table |
|
|
GetUniqueColumnTitles() |
Get an array of all the column titles, using the unique name from the property |
|
|
void |
HandleDataTableChanged ( |
Call whenever the data of a table has changed, this calls the OnDataTableChanged() delegate and per-row callbacks. |
|
void |
LoadStructData ( |
|
|
FOnDataTable... |
OnDataTableChanged() |
Gets a multicast delegate that is called any time the data table changes. |
|
void |
OnPostDataImported |
Called whenever new data is imported into the data table via CreateTableFrom*; Alerts each imported row and gives the row struct a chance to operate on the imported data |
|
void |
RemoveRow ( |
Removes a single row from the DataTable by name. Just returns if row is not found. |
|
void |
RemoveRowInternal ( |
Deletes the row memory |
|
void |
RestoreAfterStructChange() |
|
|
void |
SaveStructData ( |
|
|
bool |
WriteRowAsJSON ( |
Output the fields from a particular row (use RowMap to get RowData) to an existing JsonWriter |
|
bool |
WriteTableAsJSON ( |
Output entire contents of table as JSON |
|
bool |
WriteTableAsJSONObject ( |
Output entire contents of table as a JSON Object |
Name | Description | ||
---|---|---|---|
|
void |
FinishDestroy() |
Called to finish destroying the object. |
|
void |
GetAssetRegistryTags ( |
Gathers a list of asset registry searchable tags which are name/value pairs with some type information This only needs to be implemented for asset objects |
|
void |
GetPreloadDependencies |
Called during cooking. |
|
void |
GetResourceSizeEx ( |
Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the extended version which separates up the used memory into different memory regions (the actual definition of which may be platform specific). |
|
bool |
NeedsLoadForClient() |
Called during saving to determine the load flags to save with the object. |
|
bool |
NeedsLoadForEditorGame() |
Called during saving to include this object in client/servers running in editor builds, even if they wouldn't normally be. |
|
void |
PostEditChangeProperty ( |
Called when a property on this object has been modified externally |
|
void |
PostInitProperties() |
Called after the C++ constructor and after the properties have been initialized, including those loaded from config. |
|
void |
PostLoad() |
Do any object-specific cleanup required immediately after loading an object. |
|
void |
PostLoadAssetRegistryTags ( |
Performs fixup on loaded asset registry data. |
|
void |
Serialize ( |
Handles reading, writing, and reference collecting using FArchive. |
Name |
Description |
|
---|---|---|
|
FScopedDataTableChange |
Used to trigger the data table changed delegate. |
Name |
Description |
---|---|
FOnDataTableChanged |
|
FOnDataTableImport |
Name | Description | ||
---|---|---|---|
|
ImportPath_DEPRECATED |
The filename imported to create this object. |
|
|
RowStructName_DEPRECATED |
The name of the RowStruct we were using when we were last saved |
Name | Description | ||
---|---|---|---|
|
GetRowStructName() |
Class names are now represented by path names. Please use GetRowStructPathName. |