Skip to content

DataAsset

51 tools for data tables and their rows, curve tables and curves, data assets, data registries, string tables, CSV and JSON import and export, and localization.

Back to the index.

add_curve_key

Destructive

Add or update a keyframe (time, value) on one channel of a CurveFloat, CurveVector or CurveLinearColor asset, set its interpolation and save the asset; a key already at that time is replaced. Returns the read-back time, value, interp and key_count. Inverse: remove_curve_key; list keys with get_curve_keys.

Parameter Type Required Description
curve_path string yes Full asset path of the curve
time number yes Key time on the X axis of the curve, in the units the curve uses (often seconds); an existing key at this time is replaced
value number yes Key value (Y axis) stored at that time on the chosen channel, as a float
channel number no Curve channel index, default 0: 0 for CurveFloat, 0-2 (X, Y, Z) for CurveVector, 0-3 (R, G, B, A) for CurveLinearColor; out of range is an error
interp string no Key interpolation mode (constant|cubic|linear, default linear); any other value silently falls back to linear

Returns: { curve_path, curve_class, channel, num_channels, time, value, interp, key_added, key_count, saved }

add_curve_table_key

Destructive Idempotent

Set one key (time, value) on a row of a UCurveTable asset with rich curves, in one undo step, then save the table: a key already at that time gets the new value, otherwise a key is added, and a row that does not exist yet is created (created_row true). Use it to key one point at a time; to create or replace a whole row with several keys at once use add_curve_table_row, to delete a key remove_curve_table_key (inverse), to delete the row remove_curve_table_row, and to read rows and keys get_curve_table_info; create the table with create_curve_table. Idempotent: the same time and value again leaves the curve as it was (and saves again). key_added is true for both an added and an updated key; time and value are read back from the stored key, and key_count tells whether a key was added. A table that does not load, or one in SimpleCurves mode (it cannot hold rich keys), is an error before anything changes; a failed save (for example while PIE runs) makes success false with the key only in memory.

Parameter Type Required Description
curve_table_path string yes Asset path of the UCurveTable, e.g. "/Game/Data/CT_Damage", as create_curve_table returns it.
row_name string yes Name of the row (one curve) to key, e.g. "Fireball"; created when missing.
time number yes Key time, the curve's X value as a float, e.g. 1 (often a level or seconds).
value number yes Key value, the curve's Y value as a float, e.g. 25.5.

Returns: { curve_table_path: string, row_name: string, time: number, value: number, key_added: bool, created_row: bool, key_count: int, row_count: int, saved: bool }

add_curve_table_row

Destructive Idempotent

Create a named row (one rich curve) in a curve table asset, seeded with the given keys, in one undo step, then save the table. A row that already exists is replaced: its old keys are dropped and only the given ones remain (none when keys is omitted). Use it to write a whole row at once; to set one key without touching the others use add_curve_table_key, to delete a key remove_curve_table_key, to delete or rename the row remove_curve_table_row or rename_curve_table_row, and to read it back get_curve_table_info; create the table with create_curve_table. Idempotent: the same row_name and keys again give the same row (rebuilt and saved again). Entries of keys that are not [time, value] pairs are skipped and keys_added counts the ones applied; two keys at the same time keep the later value. A table that does not load, or one in SimpleCurves mode (imported simple curves cannot hold rich rows), is an error before anything changes; a failed save makes success false, with saved false, save_error and the change only in memory.

Parameter Type Required Description
curve_table_path string yes Asset path of the curve table, e.g. "/Game/Data/CT_Damage", as create_curve_table returns it.
row_name string yes Name of the row (one curve), e.g. "Fireball"; an existing row of that name is replaced.
keys array no Optional seed keys as [[time, value], ...] floats, e.g. [[1, 10], [10, 250]] (time is the X axis, often a level or seconds); omitted gives a row with no keys.

Returns: { curve_table_path: string, row_name: string, row_added: bool, keys_added: int, key_count: int, row_count: int, curve_table_mode: string, saved: bool, keys: [{ time, value }], save_error?: string }

add_data_registry_source

Additive

Attach a DataTable as a source of a UDataRegistry asset: a UDataRegistrySource_DataTable owned by the registry, pointing at the table, is appended to the registry's DataSources list, in one undo step, and the registry is saved. The DataTable RowStruct must match the registry's ItemStruct (create_data_registry sets it); a mismatch, or a registry or table that does not load, is an error and nothing changes. Each call appends another source, even for a table already attached, so check get_data_registry_info (DataSources) first; remove_data_registry_source is the inverse. The running subsystem does not see the new source until initialize_data_registry or refresh_data_registry_map; then get_data_registry_item reads its rows. A failed save makes success false with saved=false and save_error, the source kept in memory.

Parameter Type Required Description
registry_path string yes Content path to the UDataRegistry asset, e.g. "/Game/Data/DR_Items" (the ".DR_Items" suffix optional), as create_data_registry returns it.
data_table_path string yes Content path to the source UDataTable, e.g. "/Game/Data/DT_Items"; its RowStruct must equal the registry's ItemStruct.
precache boolean no bool, enables synchronous cached lookups (default true): the table is loaded into the cache when the registry initializes, which get_data_registry_item needs.

Returns: { registry_path: string, data_table_path: string, source_name: string, success: bool, precache: bool, source_count: int, saved: bool, save_error: string }

compile_text_for_target

Destructive

Compile a localization target's archives into runtime LocRes/LocMeta binaries, by generating its CompileText commandlet config (LocalizationConfigurationScript::GenerateCompileTextConfigFile) and running it in-process (UGatherTextCommandlet::Execute) -- the same pipeline the Localization Dashboard's "Compile Text" button drives. Run gather_text_for_target first so the archives are up to date.

Parameter Type Required Description
target_name string yes Required. Target name, as listed by list_localization_targets.
scope string no Optional: "engine" | "game". Disambiguates a same-named target in both sets; defaults to searching both.
culture_name string no Optional. Restrict compilation to a single supported culture; omit to compile every supported culture.

Returns: { target_name: string, scope: string, culture_name: string, config_path: string, config_written: bool, exit_code: int, success: bool, message: string }

create_composite_curve_table

Additive

Creates a UCompositeCurveTable at package_path/name that stacks the given UCurveTables as parents, and saves it. An existing composite there is reused and only gets parents if it has none; when it gets none it is returned unchanged with already_exists=true and saved=false, and nothing is saved. Any other asset class at that path is an error. Parents that fail to load are skipped and listed in missing_parents. A failed save makes success false with saved=false and save_error. Returns parent_count, row_count, created, saved. A plain table is create_curve_table; read back with get_curve_table_info.

Parameter Type Required Description
name string yes Name of the new CompositeCurveTable asset.
package_path string no Content folder; defaults to /Game/CurveTables
parent_table_paths array no Optional list of UCurveTable asset paths to stack as parents

Returns: { name: string, package_path: string, asset_path: string, curve_table_path: string, curve_class: string, parent_count: int, row_count: int, curve_table_mode: string, created: bool, already_exists: bool, saved: bool, missing_parents?: [string], message?: string, save_error?: string }

create_composite_data_table

Destructive Idempotent

Create, or bring up to date, a UCompositeDataTable whose rows are the merge of its parent DataTables, so a project can extend an upstream table without editing it; then save it and verify the merge against the live row map. Idempotent: the parent list is set, not appended, so a re-run with the same row struct and parents changes nothing (saved=false and a note), and one with another list overwrites the old one. Every parent must load and share the row struct, and the chain must not loop; a breach, an asset of another class at that path, or a new row struct for an existing composite is an error before anything is created or modified. Not an undo step. A standalone table is create_data_table; read the merged rows with get_data_table_rows. A failed save makes success false.

Parameter Type Required Description
table_name string yes Asset name of the composite, e.g. 'DT_Items_Combined'; package_path/table_name must form a valid long package name.
parent_tables array yes Array of DataTable asset paths, lowest precedence first: a row present in several parents takes its values from the one with the highest index, e.g. ["/Game/Data/DT_Items", "/Game/Mod/DT_ItemsExtra"]. A path listed twice counts once.
package_path string no Content folder as a long package path, e.g. '/Game/Data' (default /Game/DataTables).
row_struct string no Optional row struct name without the F prefix, e.g. 'ItemRow', or its path '/Script/MyGame.ItemRow'. Defaults to the existing composite's struct, else the first parent's; an existing composite's struct cannot be changed in place.
include_row_sources boolean no Optional bool (default false): also return the winning parent for EVERY merged row. Expensive on large tables.

Returns: { table_name, package_path, table_path, table_class, row_struct, created, already_existed, requested_parent_tables, missing_parents, parents_applied, saved, save_error, note, parent_tables, parent_count, contributing_parent_count, merged_row_count, sum_parent_row_counts, expected_merged_row_count, merged_row_count_matches_parents, parent_row_struct_mismatch, shadowed_rows, shadowed_row_count, row_sources_included, row_sources? }

create_curve_asset

Additive

Create a curve asset (CurveFloat, CurveVector or CurveLinearColor) -- a reusable value-over-time or value-over-input ramp for damage falloff, stat growth, fade timing or colour gradients, referenced by assets instead of hard-coded numbers. Channel count follows the type (1 / 3 / 4), and add_curve_key fills it. A curve of that type already at the path is returned unchanged with already_exists=true and saved=false, and nothing is saved; another asset class there is an error. Different thing from a CurveTable (create_curve_table), which holds many named curves as rows.

Parameter Type Required Description
name string yes Asset name to create
package_path string no Target content package path where the asset is created (check the body for the default)
curve_type string no Curve type to create (read the body for the allowed values)

Returns: { name, package_path, curve_type, asset_path, curve_class, num_channels, created, already_exists, saved, success, message }

create_curve_table

Additive Idempotent

Create an empty UCurveTable asset (a table of named curve rows) at package_path/name and save it. Idempotent: a plain curve table already at that path is returned untouched with created=false, already_exists=true and saved=false, and nothing is saved; a composite curve table or any other asset there, or an invalid package name, is an error naming what is there. A failed save makes success false with saved=false and the cause in message, the new table staying in memory. The table starts in Empty mode and turns RichCurves when add_curve_table_row adds its first row. Add keys with add_curve_table_key; read back with get_curve_table_info; stack tables with create_composite_curve_table; a standalone float, vector or color curve is create_curve_asset, and a table of struct rows is create_data_table.

Parameter Type Required Description
name string yes Name of the new CurveTable asset, e.g. "CT_Damage"; also the last segment of its path.
package_path string no Content folder for the asset, e.g. "/Game/Data"; defaults to /Game/CurveTables

Returns: { name: string, package_path: string, asset_path: string, curve_table_path: string, curve_class: string, row_count: int, curve_table_mode: string, created: bool, already_exists: bool, saved: bool, message?: string }

create_data_asset

Additive

Create a DataAsset instance of a given parent class -- the single-record alternative to a DataTable row, for configuration that wants its own asset and its own reference (a biome definition, a lock profile, a weapon config). Pick a DataAsset when things point AT it individually; pick a DataTable when you want many rows edited together. Fill it with set_properties and read it back with get_data_asset_info.

Parameter Type Required Description
asset_name string yes Name of the new DataAsset to create.
package_path string no Target content package path where the asset is created (check the body for the default)
parent_class string no DataAsset parent class name (defaults to DataAsset)

Returns: { asset_name, package_path, parent_class, asset_path, success, saved, message }

create_data_registry

Additive Idempotent

Create and save a UDataRegistry asset. The registry's ItemStruct is set to the named UScriptStruct (e.g. "MirrorTableRow"); DataTable sources attached later must use a matching RowStruct. Idempotent: a registry already at the path is returned unchanged with already_exists=true and saved=false (registry_type and item_struct not applied), and nothing is saved; another asset class there is an error. A failed save makes success false with saved=false and save_error. Attach sources with add_data_registry_source, then register it with initialize_data_registry.

Parameter Type Required Description
registry_name string yes Name of the new UDataRegistry asset.
item_struct string yes Name of the UScriptStruct used for items (e.g. "MirrorTableRow").
package_path string no Destination /Game folder (default /Game/DataRegistries).
registry_type string no RegistryType FName (defaults to registry_name).

Returns: { registry_path: string, registry_type: string, item_struct: string, success: bool, already_exists: bool, type_verified: bool, struct_verified: bool, saved: bool, save_error: string, message?: string }

create_data_table

Additive Idempotent

Create a DataTable asset bound to a row struct -- the standard container for game data (items, recipes, loot, quests, dialogue) that designers edit without touching Blueprints. The row struct must already exist (create_struct) and cannot be changed afterwards without losing data, so settle its columns first. Idempotent: re-running with the same row_struct returns the existing table unchanged with already_existed=true and saved=false, and nothing is saved; a different row_struct, a composite table or another asset class at the path is an error. Rows go in with set_data_table_row (create_if_missing=true) or import_data_table_csv; create_composite_data_table is the variant that merges several parent tables.

Parameter Type Required Description
table_name string yes Name of the new DataTable.
row_struct string yes Name of the UScriptStruct that defines the row structure.
package_path string no Target content package path where the asset is created (check the body for the default)

Returns: { table_name, package_path, row_struct, table_path, success, saved, already_existed, message }

create_string_table

Additive

Creates a UStringTable asset at package_path/name with the given namespace and no entries, then saves it. A string table already there is returned unchanged (namespace not applied, already_exists true, saved false) and nothing is saved; an asset of another class there is an error naming that class. A failed save makes success false with saved=false and save_error, the new table staying in memory. Returns asset_path, string_table_id, namespace, entry_count, created, saved. Add entries with set_string_table_entry; list them with get_string_table_entries.

Parameter Type Required Description
name string yes Name of the new StringTable asset
package_path string no Target content path, defaults to /Game/StringTables
namespace string no Optional namespace for all entries, defaults to asset name

Returns: { name: string, package_path: string, asset_path: string, string_table_path: string, string_table_id: string, namespace: string, entry_count: int, created: bool, already_exists: bool, saved: bool, message: string, save_error?: string }

diff_data_tables

Read-only

Diff two DataTables row by row and cell by cell without modifying either: two asset paths (a, b), or two JSON dumps (before_json, after) such as get_data_table_rows or export_data_table_as_json output, which win when present. Returns identical, added/removed/changed rows with counts and changed cells as {column, a, b}.

Parameter Type Required Description
a string no Full asset path of the first DataTable (alias: table_a); asset mode
b string no Full asset path of the second DataTable (alias: table_b); asset mode
before_json object|array|string no The 'before'/A table dump as a JSON object/array or stringified JSON (alias: before); JSON mode
after object|array|string no The 'after'/B table dump as a JSON object/array or stringified JSON (alias: after_json); JSON mode
table_a string no Alias of a: asset path of the first DataTable, e.g. "/Game/Data/DT_Items"; a wins when both are given
table_b string no Alias of b: asset path of the second DataTable, e.g. "/Game/Data/DT_Items_Old"; b wins when both are given
before object|array|string no Alias of before_json: the first (before) table dump; before_json wins when both are given
after_json object|array|string no Alias of after: the second (after) table dump; after wins when both are given

Returns: { mode, identical, added_count, removed_count, changed_count, unchanged_count, a_row_count, b_row_count, added_rows:[{row_name,row_data}], removed_rows:[...], changed_rows:[{row_name,changed_cells:[{column,a,b}]}] }

export_data_table_as_csv

Destructive

Export a whole DataTable to CSV with the engine's native exporter, returning row_struct, row_count and the csv string; with file_path the same text is also written to that file as UTF-8, overwriting any file there. The DataTable asset itself is never changed. Use it as the backup before import_data_table_csv; nested structs and TMaps do not survive CSV cleanly, so export_data_table_as_json is the faithful copy, and get_data_table_rows or get_data_table_column read rows without exporting. A table that does not load or has no row struct is an error, and so is a file that cannot be written (the csv is then not returned either).

Parameter Type Required Description
table_path string yes Object or package path of the DataTable asset, e.g. '/Game/Data/DT_Items'.
data_table string no Alias of table_path: pass one of the two.
file_path string no Optional absolute OS path of the file to write, e.g. 'C:/Backups/DT_Items.csv'; an existing file is overwritten, and the path is echoed back as written_to.

Returns: { table_path, row_struct, row_count, csv, written_to? }

export_data_table_as_json

Destructive Idempotent

Export a whole DataTable, a composite one included, through the engine's native JSON exporter: json is a string holding an array of row objects in which TMap<Enum,SoftClass>, soft references and GameplayTags survive, unlike the reflection readers such as get_data_table_rows. The table is only read, never modified or saved. With file_path the same text is also written to that OS path as UTF-8, overwriting a file already there; a failed write is an error and returns no json. Repeating the call gives the same output (idempotent). data_table wins over table_path when both are given; a table that does not load, or has no row struct, is an error. Flat CSV: export_data_table_as_csv; one row: get_data_table_row with include_native_json; compare two exports with diff_data_tables; write rows back with set_data_table_rows_from_json.

Parameter Type Required Description
table_path string yes Full asset path of the DataTable.
data_table string no Alias of table_path; it is read first, so it wins when both are given.
file_path string no Optional OS file path; the JSON is also written there as UTF-8, overwriting an existing file, and echoed back as written_to

Returns: { table_path, row_struct, row_count, json, written_to? }

gather_text_for_target

Destructive

Gather the localizable text of a localization target into its manifest and archive files (Content/Localization/<target>/ for a game target), the same pipeline as the Localization Dashboard's Gather Text button: it writes the target's GatherText config file (through source control when enabled) and runs the GatherText commandlet in-process, which blocks the editor until it finishes. The manifest is regenerated from the current sources, so text no longer in the project drops out of it; translations already in the archives are kept for text that remains. No undo step. Run it before compile_text_for_target, which builds the runtime .locres files; find target names with list_localization_targets. An unknown target, or a config file that cannot be written, is an error before anything runs; a non-zero commandlet exit code is success=false with exit_code (details in the Output Log). Repeating it gathers again from the current sources.

Parameter Type Required Description
target_name string yes Exact target name as list_localization_targets returns it, e.g. "Game".
scope string no "engine" or "game", case ignored, to pick between same-named targets; omitted (or any other value) searches the engine set first, then the game set.

Returns: { target_name: string, scope: string, config_path: string, config_written: bool, exit_code: int, success: bool, message: string }

get_culture_info

Read-only

Look up a culture by name, or with no name read the editor's current active culture/locale (FInternationalization::GetCurrentCulture), without switching the active one (FInternationalization::GetCulture). is_active says whether the reported culture is the current one. An unknown name is a success with found=false.

Parameter Type Required Description
culture_name string no Optional culture identifier, e.g. "en", "es-ES", "ja"; omitted or empty reports the current active culture.

Returns: { culture_name: string, found: bool, is_active: bool, display_name?: string, native_name?: string, iso_two_letter_name?: string }

get_curve_keys

Read-only

Read every keyframe of a curve asset -- time, value and interpolation mode, grouped per channel, with per-channel and total counts. The read-back oracle for add_curve_key and the way to see the actual shape of a damage-falloff or growth curve before tuning it. Returns the authored KEYS; to sample the interpolated value at an arbitrary time use evaluate_curve_at_time instead.

Parameter Type Required Description
curve_path string yes Full asset path of the curve

Returns: { curve_path, curve_class, num_channels, channel, time, value, interp, keys, key_count, channels, total_key_count }

get_curve_table_info

Read-only

Read a UCurveTable or UCompositeCurveTable asset found by content path: its class, its mode (Empty, SimpleCurves or RichCurves) and every row with its name and key count; for a composite, the rows are the ones merged from its parent tables, and parent_count says how many it stacks. Key times and values are not returned. Nothing is written; a path that does not load as a curve table is an error. Write rows and keys with add_curve_table_row, add_curve_table_key, remove_curve_table_key, rename_curve_table_row and remove_curve_table_row; a DataTable is read with get_data_table_info, a standalone curve asset with get_curve_keys.

Parameter Type Required Description
curve_table_path string yes Content path of the UCurveTable (or UCompositeCurveTable), e.g. "/Game/CurveTables/CT_Damage".

Returns: { curve_table_path: string, curve_table_name: string, curve_class: string, curve_table_mode: string, rows: [{ name, key_count }], row_count: int, is_composite: bool, parent_count?: int }

get_data_asset_info

Read-only

Read a DataAsset's class and ALL of its reflected properties with their current values -- the read-back oracle for set_properties, and better than inspecting it from Python, where StructBase.to_dict() on a user-defined struct returns an empty dict and a GameplayTag prints as {} whether it holds a tag or not, both of which read as "nothing was written" when the values are actually there.

Parameter Type Required Description
asset_path string yes The full asset path to the DataAsset.

Returns: { asset_path, asset_name, asset_class, asset_path_name, properties: [{ name, type, value }] }

get_data_registry_info

Read-only

Read a UDataRegistry asset: registry_type, item_struct, initialized, every DataSources[] slot (index, name, class, data_table, source_table) and item_names. Read-only. source_count counts every slot, a null one included (listed with class "null"). source_table is the SourceTable of any source class that has one (DataTable and CurveTable sources). item_names lists cached items only, so it stays empty until the registry is initialized (initialize_data_registry).

Parameter Type Required Description
registry_path string yes Asset path of the UDataRegistry, e.g. "/Game/Data/DR_Items".

Returns: { registry_path: string, registry_type: string, item_struct: string, initialized: bool, sources: [{index: int, class: string, name?: string, data_table?: string, source_table?: string}], source_count: int, item_names: [string], item_count: int }

get_data_registry_item

Read-only

Read one item of a data registry from the DataRegistry subsystem's cache, by registry type and item name, without changing anything: item_data is the item struct exported as Unreal text, e.g. (Damage=10.0,Name="Sword"), and item_struct names its struct. Only cached items can be read, which means a precached source (a DataTable source) of a registry initialized this session with initialize_data_registry; an item that is not cached, or a registry type the subsystem does not know, is an error, so found is true in every reply. Find registry types with list_data_registry_types and item names with get_data_registry_info (item_names); for the source DataTable row itself use get_data_table_row. A missing subsystem (DataRegistry plugin off) is an error.

Parameter Type Required Description
registry_type string yes Registry type name the asset declares, as list_data_registry_types returns it (registries[].registry_type), e.g. "Items".
item_name string yes Item name, as get_data_registry_info lists it in item_names; for a DataTable source it is the row name, e.g. "Sword".

Returns: { registry_type: string, item_name: string, item_struct: string, found: bool, item_data: string }

get_data_table_column

Read-only

Read one column across every row of a DataTable as ExportText strings, so TMaps, soft references and tags come out flat and intact; read-only. Returns row_struct, row_count and values as {row_name: text}. Use it to verify cell edits; an unknown column is an error.

Parameter Type Required Description
table_path string yes Full asset path of the DataTable.
column string yes Name of the column (a field of the row struct, by property or display name) to read across every row
data_table string no Alias of table_path: pass one of the two.

Returns: { table_path, column, row_struct, row_count, values:{ rowName: exporttext-string } }

get_data_table_from_package_file

Destructive

Read a DataTable from any .uasset file on disk (e.g. a backup) through a throwaway copy loaded under /Temp/, so a live asset with the same /Game name is untouched; then deletes the copy and, by default, garbage-collects. Returns table_name, row_struct, row_count and rows as native JSON, or one row via row_name.

Parameter Type Required Description
package_file string yes Absolute filesystem path to the external .uasset (alias: file_path)
object_name string no Optional name of the DataTable object inside the package (defaults to the first UDataTable / the package's primary asset)
row_name string no Optional single row to return; when omitted every row is returned
collect_garbage boolean no When true (default) force a GC purge of the throwaway load after reading
file_path string no Alias of package_file (OS path to the .uasset, e.g. "D:/Backup/DT_Items.uasset"); package_file wins when both are given

Returns: { package_file, mount_root, package_name, table_name, row_struct, row_count, rows:[{row_name,row_data}] } (or, for a single row_name, { ..., row_name, row_json, row_data })

get_data_table_info

Read-only

Describe a DataTable without changing it: table class, row struct (None when it has none), row count, every row name in row-map order, and the row-struct columns with their C++ type and is_map / is_soft / is_tag flags. For a UCompositeDataTable (see table_class) row_count is the already-merged map, so the reply adds where the rows come from: parent_tables in precedence order (a higher index overrides a lower one), merged versus summed parent row counts, shadowed_rows with the winning parent, and parent_row_struct_mismatch for parents the engine skips; include_row_sources adds the winner of every row. A path that does not load as a DataTable is an error. Row values: get_data_table_rows, or get_data_table_row (include_export_text for each cell as ExportText); one column: get_data_table_column; build a composite: create_composite_data_table.

Parameter Type Required Description
table_path string yes The full asset path to the DataTable or UCompositeDataTable, e.g. "/Game/Data/DT_Items".
include_row_sources boolean no Composite tables only. Optional bool (default false): also return the winning parent for EVERY merged row. Expensive on large tables.

Returns: { table_path, table_name, table_class, row_struct, row_count, row_names, columns:[{ name, type, is_map, is_soft, is_tag }] } plus, for a UCompositeDataTable: { parent_tables:[{ index, path, name, table_class, row_struct, row_count, row_struct_matches, contributes, null_entry }], parent_count, contributing_parent_count, merged_row_count, sum_parent_row_counts, expected_merged_row_count, merged_row_count_matches_parents, parent_row_struct_mismatch:[], shadowed_rows:[{ row_name, winner, winner_parent_slot, shadowed_by_winner:[] }], shadowed_row_count, row_sources_included, row_sources? }

get_data_table_row

Read-only

Pack data_tables: enable_toolset adds it to a client's list (tool lists).

Read ONE row of a DataTable by key and get every column as JSON. Reads the row memory untyped (FindRowUnchecked), so it works on Blueprint / user-defined row structs that are not FTableRowBase children, where the typed lookup reports "Row not found" for rows that exist; a miss here really is a missing key. Serializes TMap, nested struct and GameplayTag columns in row_data. Two optional renderings of the same row: include_native_json adds row_json, the verbatim string of UE's own DataTable JSON writer -- the exact format set_data_table_row_from_json consumes, so it is the read half of a copy/round-trip (it emits GameplayTagContainers in the ExportText form the importer accepts; the round trip is not lossless for multi-word user-defined enums, so re-read what you wrote); include_export_text adds fields, every cell as its byte-exact ExportText string, so TMap<Enum,SoftClass>, nested struct arrays and soft references appear in full (row_data shows such TMaps as {}) -- the form to copy a vendor row or to tell an empty enum from an unwritten one. Use get_data_table_rows when you want the enum DISPLAY names.

Parameter Type Required Description
table_path string yes The full asset path to the DataTable.
row_name string yes The name of the row to retrieve.
include_native_json boolean no Optional bool, default false: add row_json, the row as UE's native DataTable JSON string.
include_export_text boolean no Optional bool, default false: add fields, {column: ExportText string} for every cell.

Returns: { table_path: string, row_name: string, row_struct: string, row_data: object, row_json?: string, fields?: object } where row_data is the fully serialized row struct (TMap / nested struct / FGameplayTag columns included)

get_data_table_rows

Read-only

Dump EVERY row of a DataTable as an array, with the row count -- for browsing or diffing a whole table of items, recipes, quests or loot. The reader to pick when a column is a user-defined ENUM: it emits the enumerator's DISPLAY NAME, whereas the ExportText readers return "" for the index-0 enumerator, which is indistinguishable from a column that was never written. Whole-table sized, so for one row use get_data_table_row and for one column across rows use get_data_table_column.

Parameter Type Required Description
table_path string yes The full asset path to the DataTable.

Returns: { table_path, row_name, rows, row_count }

get_string_table_entries

Read-only

Lists every entry of a UStringTable asset, or with key only that entry, without changing it. Returns string_table_name, string_table_id, namespace, count and entries, each with key, source (the source string) and its metadata (FStringTable::EnumerateMetaData) as an id to value object with metadata_count; with key, entry_exists says whether the table has it (a missing key is a success with entry_exists=false and no entries). Edit entries with set_string_table_entry and metadata with set_string_table_metadata.

Parameter Type Required Description
string_table_path string yes Full asset path to the UStringTable
key string no Optional entry key: list only that entry and report entry_exists

Returns: { string_table_path: string, string_table_name: string, string_table_id: string, namespace: string, entries: [{ key: string, source: string, metadata: object, metadata_count: int }], count: int, key?: string, entry_exists?: bool }

import_data_table_csv

Destructive

Bulk-load a DataTable from a CSV string -- the fast path for authoring or restoring many rows at once. DESTRUCTIVE: it REPLACES the table's rows, so any row not in the CSV is gone; export first (export_data_table_as_csv) if you meant to merge. Always read the problems array and problem_count: the native importer reports per-cell failures there while still succeeding overall, and enum values whose display name contains spaces are cut at the first space and silently land on the index-0 enumerator. For a handful of rows prefer set_data_table_rows_from_json, which reports per-row results.

Parameter Type Required Description
table_path string yes Full asset path of the DataTable
csv_string string yes CSV content (header row + one row per data row)

Returns: { table_path, row_struct, rows_imported, row_count, problem_count, saved, problems, row_names }

initialize_data_registry

Additive Idempotent

Register and initialize a UDataRegistry asset with the UDataRegistrySubsystem for this editor session, so get_data_registry_item can read its precached items: the asset is loaded, its path goes on the subsystem's load list (LoadRegistryPath), the registry map is refreshed and registries not yet initialized are initialized. Nothing is saved or written to the asset, and a repeat call adds nothing (idempotent). loaded, registered and initialized are read back from this asset, and it is a failure, success false with the reason, unless it ends up registered and initialized: another asset holding its registry_type, or no source that initializes, prevents that. A registry that does not load, or a missing subsystem (DataRegistry plugin off), is an error. Create one with create_data_registry and attach sources with add_data_registry_source; after edits use refresh_data_registry_map; state: get_data_registry_info, list_data_registry_types.

Parameter Type Required Description
registry_path string yes Path of the UDataRegistry asset, e.g. "/Game/Data/DR_Items" or "/Game/Data/DR_Items.DR_Items".

Returns: { registry_path: string, registry_type: string, success: bool, loaded: bool, registered: bool, initialized: bool }

list_data_registry_types

Read-only

List the registries the UDataRegistrySubsystem currently has registered, sorted by type and paged with offset/limit, each with registry_type, registry_path, item_struct and initialized. Read-only. An asset the subsystem has not loaded is absent: register it with initialize_data_registry, or call refresh_data_registry_map after edits.

Parameter Type Required Description
offset integer no Index of the first entry returned, counted from 0 (default 0). Read the next page at the reply's next_offset.
limit integer no Most entries returned per call, 1..1000 (default 100).

Returns: { registries: [{registry_type, registry_path, item_struct, initialized}], registry_count: int (entries in this page), total: int, offset: int, limit: int, returned: int, truncated: bool, next_offset: int|null }

list_localization_targets

Read-only

List the localization targets configured in the Localization Dashboard (ULocalizationSettings engine and game target sets) without changing anything, each with its scope, native culture and supported cultures. It is the first step of the localization pipeline: pass a name to gather_text_for_target, then compile_text_for_target, and preview a supported culture with set_active_culture. For one culture's details use get_culture_info; for string tables use get_string_table_entries. A project with no targets is a success with targets_count 0; a scope other than engine, game or all is an error.

Parameter Type Required Description
scope string no "engine", "game" or "all" (default all), case ignored: which target set to list. Project targets such as "Game" live in the game set.

Returns: { scope: string, targets: [{ name: string, scope: string, native_culture: string, supported_cultures: string[] }], targets_count: int }

refresh_data_registry_map

Destructive Idempotent

Make the DataRegistry subsystem rebuild, for this editor session, its map from registry type to registry asset out of the registry assets loaded in memory under its scan paths, so edits to registry assets (a changed registry_type, sources changed with add_data_registry_source or remove_data_registry_source) are seen without restarting the editor. A registry whose type drops out of the map is deinitialized, losing its cached items. It changes no asset and saves nothing, and it neither loads nor initializes a registry: use initialize_data_registry for that, then get_data_registry_item to read items. Idempotent: a repeat call rebuilds the same map (map_changed false). The engine call reports nothing, so refreshed is null and the outcome is the subsystem's type -> registry map read before and after: the counts, the types added, removed or pointed at another asset, and map_changed; list_data_registry_types lists the map. A missing subsystem (DataRegistry plugin off) is an error.

No parameters.

Returns: { refreshed: null, registry_count_before: int, registry_count_after: int, added_types: [string], removed_types: [string], changed_types: [string], map_changed: bool, note: string }

remove_curve_key

Destructive

Delete one keyframe from a curve channel, addressed either by key_index or by time -- the inverse of add_curve_key. Indices shift after a removal, so prefer addressing by time, or work from the highest index down. The reply's existed flag distinguishes "removed it" from "there was no key there"; get_curve_keys gives the indices and times.

Parameter Type Required Description
curve_path string yes Full asset path of the curve
channel number no Curve channel index (defaults to 0)
key_index integer no Index of the key to remove (0 <= index < key_count); provide this OR time
time number no Time of the key to remove; provide this OR key_index

Returns: { curve_path, curve_class, channel, num_channels, removed, existed, key_count, saved }

remove_curve_table_key

Destructive

Remove a single key from an existing UCurveTable row's rich curve by index or time, without deleting the row (inverse of add_curve_table_key).

Parameter Type Required Description
curve_table_path string yes Full asset path to the UCurveTable.
row_name string yes Name of the row (rich curve) to edit.
key_index integer no Index of the key to remove (0 <= index < key_count); provide this OR time
time number no Time of the key to remove; provide this OR key_index

Returns: { curve_table_path: string, row_name: string, row_existed: bool, key_existed: bool, removed: bool, key_count: int, row_count: int, curve_table_mode: string, saved: bool, save_error: string? }

remove_curve_table_row

Destructive Idempotent

Delete one named row (curve) from a UCurveTable loaded by asset path, in one undo step, then save the table and read back that the row is gone. Works in either table mode, simple or rich curves. Idempotent: a row_name the table does not have (row names compare case-insensitively) is a success with existed=false, removed=false, saved=false and a note, and nothing is touched or saved. A table that does not load is an error. A failed save -- refused while PIE runs, under a read-only root, or a read-only file -- gives success false, saved=false and save_error, with the row already gone in memory. List rows with get_curve_table_info; drop one key but keep the row: remove_curve_table_key; rename a row: rename_curve_table_row; add one: add_curve_table_row; DataTable rows: remove_data_table_row.

Parameter Type Required Description
curve_table_path string yes Full asset path to the UCurveTable.
row_name string yes Name of the row (curve) to remove.

Returns: { curve_table_path: string, row_name: string, existed: bool, removed: bool, still_exists: bool, row_count: int, curve_table_mode: string, saved: bool, save_error: string?, note: string? }

remove_data_registry_source

Destructive Idempotent

Remove a DataTable source from a UDataRegistry asset (the true inverse of add_data_registry_source), or with all=true empty every DataSources[] slot. Does a reflective RemoveAt (or Empty) on the registry's protected DataSources[] array and saves the asset. Select one source either by data_table_path (matched against each DataTable source's SourceTable) or by source_index. Does NOT unregister from the subsystem (there is no public UnregisterRegistry): already-cached items may stay queryable until the editor restarts; refresh_data_registry_map makes the subsystem re-read the registry map. Idempotent: a source that is not present, or all=true on a registry without sources, returns removed:false with an unchanged count.

Parameter Type Required Description
registry_path string yes Content path to the UDataRegistry asset.
data_table_path string no Content path of the source DataTable to remove (matched against SourceTable). Provide this OR source_index OR all.
source_index integer no Direct index into DataSources[] to remove. Provide this OR data_table_path OR all.
all boolean no Optional bool, default false: true removes every source (null slots included) instead of one; it excludes data_table_path and source_index.

Returns: { registry_path: string, source_index?: int, data_table_path?: string, all?: bool, source_count_before: int, source_count_after: int, removed: bool, saved: bool, save_error?: string, note?: string }

remove_data_table_row

Destructive

Remove one row from a DataTable by key, saving the asset and VERIFYING the removal by re-reading (it reports existed, removed, still_exists and the new row_count, so the reply is its own oracle rather than a bare success). Check existed to tell "deleted it" from "there was never such a key" (then saved=false, nothing saved). Anything still referencing that row name by handle now resolves to nothing, silently -- audit with find_blueprint_node_references before deleting a live row.

Parameter Type Required Description
table_path string yes Full asset path of the DataTable
row_name string yes Name (key) of the row to remove

Returns: { table_path, row_name, existed, removed, still_exists, row_count, saved, note? }

remove_string_table_entry

Destructive Idempotent

Remove the entry key, with all its metadata, from a UStringTable asset inside an undo transaction, then mark the asset dirty and save it. Idempotent: a key that is not in the table is already the state asked for, so the call succeeds with removed false and already_absent true and changes and saves nothing. A missing table is an error, and so is a failed save, which keeps the removal in memory. Use remove_string_table_metadata to drop only metadata, set_string_table_entry to add or change an entry, get_string_table_entries to list them.

Parameter Type Required Description
string_table_path string yes Full asset path to the UStringTable
key string yes Entry key to remove

Returns: { string_table_path: string, key: string, removed: bool, existed: bool, already_absent: bool, verified: bool, namespace: string, entry_count: int, saved: bool }

remove_string_table_metadata

Destructive Idempotent

Remove a metadata id from a UStringTable entry (FStringTable::RemoveMetaData). Idempotent (no-op if the id is absent). Pairs with set_string_table_metadata; read it back with get_string_table_entries.

Parameter Type Required Description
string_table_path string yes Full asset path to the UStringTable.
key string yes Entry key the metadata is attached to.
metadata_id string yes Metadata id (an FName, e.g. 'Comment') to remove.

Returns: { string_table_path: string, key: string, metadata_id: string, existed: bool, removed: bool, still_exists: bool, entry_exists: bool, metadata: object, metadata_count: int, namespace: string, saved: bool }

rename_curve_table_row

Destructive Idempotent

Rename one row (curve) of a UCurveTable loaded by asset path, in one undo step, then save it and read back both names. UCurveTable::RenameRow would silently do nothing when row_name is missing, new_row_name is already a row, or the names are equal (row names compare case-insensitively, so a case-only rename is one of these); the call checks first and answers those as a success with renamed=false, saved=false and a note, nothing touched -- source_existed and target_existed say which -- so a repeat call is an idempotent no-op. A table that does not load is an error. A failed save -- PIE running, a read-only root or file -- gives success false, saved=false and save_error, with the rename done in memory. List rows: get_curve_table_info; drop one: remove_curve_table_row; DataTable keys: rename_data_table_row.

Parameter Type Required Description
curve_table_path string yes Full asset path to the UCurveTable.
row_name string yes Current name of the row to rename.
new_row_name string yes New name for the row.

Returns: { curve_table_path: string, row_name: string, new_row_name: string, source_existed: bool, target_existed: bool, renamed: bool, old_still_exists: bool, new_exists: bool, row_count: int, curve_table_mode: string, saved: bool, save_error: string?, note: string? }

rename_data_table_row

Destructive

Rename a DataTable row key, copying its value byte-exact (safer than delete plus re-add, which can drop GameplayTags), then save and verify the swap (new_exists, old_removed). Refuses a case-only rename, and an existing new_name unless overwrite=true. Row handles that reference the old name are not updated.

Parameter Type Required Description
table_path string yes Full asset path of the DataTable (data_table also accepted)
old_name string yes Existing row key to rename (error if it does not exist)
new_name string yes New row key (error if it already exists unless overwrite=true)
overwrite boolean no When true, allow new_name to replace an existing row; when false (default) a pre-existing new_name is an error
data_table string no Alias of table_path (the DataTable asset path, e.g. "/Game/Data/DT_Items"); table_path wins when both are given

Returns: { table_path, old_name, new_name, row_struct, success, overwrote_existing, new_exists, old_removed, saved, row_count }

set_active_culture

Destructive Idempotent

Switch the running editor's current culture, language and locale together to one culture (FInternationalization::SetCurrentCulture), clearing any per-asset-group culture: localized text across the editor and PIE re-resolves to that language where translations exist, and numbers and dates format in its locale. It lasts for this editor session only; nothing is saved to config and there is no undo. Use it to preview localized text or string table entries in another language; check a name and see the current culture first with get_culture_info. Setting the culture that is already active changes nothing and succeeds. A culture name the engine does not know is an error and the culture stays as it was.

Parameter Type Required Description
culture_name string yes Required culture identifier as an IETF language tag, e.g. "en", "es-ES", "ja"; get_culture_info tells whether a name is known.

Returns: { culture_name: string, success: bool }

set_data_table_cell

Destructive Idempotent

Set one element of an array column in a DataTable row (a field of a struct element, or a scalar element) by direct ImportText, bypassing the JSON/CSV importer, and save. Returns before_value, after_value, write_verified; an unregistered GameplayTag still becomes None (write_verified:false) and is saved anyway.

Parameter Type Required Description
table_path string yes Full asset path of the DataTable (data_table also accepted)
row_name string yes Name (key) of the row to edit
column_name string yes Name of the row-struct field holding the array (display name or authored/internal name both accepted, same fallback as get_data_table_column)
row_index number yes Index into that array to edit (0-based; errors honestly if out of range, never a silent OOB read/write)
value string yes ExportText/ImportText string to write (e.g. "Material.Bone" for a bare FGameplayTag value, or an enum's internal OR display name)
cell_property string no Name of the sub-field on the array element STRUCT to set (display or authored name); omit/empty for a scalar array (e.g. TArray<FGameplayTag>/TArray<FName>) to edit the element itself
data_table string no Alias of table_path (the DataTable asset path, e.g. "/Game/Data/DT_Items"); table_path wins when both are given

Returns: { table_path, row_name, column_name, row_index, cell_property, resolved_property, array_length, before_value, after_value, changed, already_set, import_succeeded, write_verified, success, warning?, saved, save_error? }

set_data_table_row

Destructive Idempotent

Write a DataTable row from a plain JSON object of columns and save the table. By default the row must EXIST and a missing key is an error -- the guard that stops a typo'd row name from quietly creating a second row; create_if_missing=true creates the row (from struct defaults) when absent, an upsert. Values go through reflection, so scalars, enums by name, nested structs and arrays all work. Columns you omit keep their current values; the write fails as a whole if any provided column cannot be imported, rather than committing a half-filled row with silent defaults, and unrecognised names come back in unknown_columns -- read that array, a typo'd column name is dropped, not an error. Pass GameplayTag and GameplayTagContainer columns in ExportText form, e.g. (TagName="A.B"). For per-column before/after evidence use set_data_table_row_fields; for one cell use set_data_table_cell.

Parameter Type Required Description
table_path string yes Full asset path of the DataTable (e.g. /Game/MyGame/DT_Example)
row_name string yes Name (key) of the row to write
row_data object yes Object of {column_name: value} to apply over the current row (or over struct defaults for a new row)
create_if_missing boolean no Optional bool, default false: true creates the row when the key is absent instead of erroring

Returns: { table_path: string, row_name: string, row_struct: string, updated_existing: bool, columns_written: int, row_count: int, saved: bool, row_data?: object, unknown_columns?: [string] }

set_data_table_row_fields

Destructive Idempotent

Pack data_tables: enable_toolset adds it to a client's list (tool lists).

Write only the named cells of one DataTable row via the native JSON importer, deep-merged onto the current row so untouched columns and struct sub-fields survive, then save. Returns changed_columns, unchanged_despite_request, unknown_columns (skipped) and the row as ExportText. For many rows use set_data_table_rows_from_json.

Parameter Type Required Description
data_table string yes Full asset path of the DataTable (table_path also accepted)
row_name string yes Name (key) of the row to write
fields object yes Object of {column_name: value} to overlay onto the current row (only these cells are written); a TMap<Enum,SoftClass> value must be an object of {EnumName: bare-class-path} (e.g. {"MyEnumValue":"/Game/...ABP_x_C"}) -- passed through verbatim, never wrapped
create_if_missing boolean no When true, create the row (from defaults) if it does not exist; when false (default) a missing row is an error
table_path string no Alias of data_table (the DataTable asset path, e.g. "/Game/Data/DT_Items"); data_table wins when both are given

Returns: { table_path, row_name, row_struct, success, saved, created, updated_existing, written_fields:[..], changed_columns:[..], unchanged_despite_request:[..], unknown_columns?:[..], problems:[..], row_after_exporttext:{column:exporttext} }

set_data_table_row_from_json

Destructive Idempotent

Write a whole DataTable row from a native-format JSON object (the shape get_data_table_row emits as row_json with include_native_json), with merge=true to overwrite only the columns you supply. The route for copying a row between tables or authoring a complex row in one call. ALWAYS read the problems array: success:true routinely coexists with columns that never landed -- a GameplayTagContainer passed as a JSON array is rejected and left empty (give it as the string "(GameplayTags=((TagName=\"A.B\")))"), a sub-field whose internal name differs from the display name you used stays at its struct default, and a user-defined enum whose display name has spaces is cut at the first space and lands on the index-0 enumerator (write the internal NewEnumeratorN name instead). Confirm with get_data_table_row include_export_text=true.

Parameter Type Required Description
table_path string yes Full asset path of the DataTable
row_name string yes Name (key) of the row to write
row_json any yes A JSON object of {column:value} (as produced by get_data_table_row as row_json with include_native_json)
merge boolean no When true and the row exists, only the caller-provided columns are overwritten

Returns: success or error payload

set_data_table_rows_from_json

Destructive Idempotent

Upsert many rows of a DataTable, loaded by asset path, in one call: each row's fields are deep-merged onto its current values (objects merge into struct members, scalars and arrays take their place), a new row name starts from struct defaults, all merged rows go through one native JSON import, and the table is saved once. Unnamed rows are untouched; no undo step. A bad row (a value that is not an object, or one the import drops) fails alone in results while the call succeeds: check summary.failed, unknown_columns, unchanged_despite_request and problems. save=false leaves the table dirty in memory; a failed save is success false, with saved=false and save_error, the rows kept in memory. A missing table or row struct is an error. One row: set_data_table_row_fields; native whole row: set_data_table_row_from_json; read back: get_data_table_rows.

Parameter Type Required Description
table_path string yes Full asset path of the DataTable (data_table also accepted)
rows object|string yes Object of { row_name: {column:value} }, or that object as a JSON string; each fields object is overlaid non-destructively (a value that is a JSON object deep-merges into the existing struct member, scalars/arrays replace)
save boolean no When true (default) save the package once after all rows are written; when false leave it dirty in memory
data_table string no Alias of table_path (the DataTable asset path, e.g. "/Game/Data/DT_Items"); table_path wins when both are given

Returns: { table_path, row_struct, results:{ row_name:{ success, created, updated_existing, changed_columns:[..], unchanged_despite_request:[..], unknown_columns?:[..], error? } }, summary:{ total, created, updated, failed }, saved, save_error?, row_count, problems:[..] }

set_string_table_entry

Destructive Idempotent

Set the source string of key in a UStringTable asset loaded by path, adding the entry when the key is new (created=true) or overwriting its source string when it exists (updated=true, its metadata kept), in one undo step, then save the asset. Every call writes and saves, even with the same string; entry_set and verified both mean the read-back matched. The key must not be empty: an empty one, which the engine asserts on, is refused before anything changes. A missing table is an error. A failed save, as during PIE, still answers success, with saved=false and a message, and the entry set in memory only. Create the table with create_string_table; list entries with get_string_table_entries; take one out with remove_string_table_entry; per-entry metadata: set_string_table_metadata.

Parameter Type Required Description
string_table_path string yes Asset path of the UStringTable, e.g. "/Game/StringTables/ST_UI".
key string yes Entry key, unique within the table and never empty, e.g. "Menu_Play"; an existing key gets the new source string.
source_string string yes Source text for the key, e.g. "Play"; an empty string is accepted.

Returns: { string_table_path: string, key: string, source_string: string, entry_set: bool, verified: bool, created: bool, updated: bool, namespace: string, entry_count: int, saved: bool, message?: string }

set_string_table_metadata

Destructive Idempotent

Set a metadata id->value pair on an existing UStringTable entry (FStringTable::SetMetaData). Metadata is per-entry localization data (e.g. Comment/Speaker/Context) that the upsert/reader did not expose. Idempotent (set-to-fixed-value); the entry (key) must already exist.

Parameter Type Required Description
string_table_path string yes Full asset path to the UStringTable.
key string yes Entry key the metadata is attached to (must already exist).
metadata_id string yes Metadata id (an FName, e.g. 'Comment').
metadata_value string yes Metadata value string (may be empty).

Returns: { string_table_path: string, key: string, metadata_id: string, metadata_value: string, verified: bool, entry_exists: bool, metadata_count: int, namespace: string, saved: bool }