Data Table
Actions for adding, editing, sorting, saving, and reading rows in Data Tables.
Most Data Table actions now use a DataTableSource parameter block to resolve the table they work on.
Set Source, then assign the matching field that appears for a DataTable, DataTableAsset, or DataTableComponent.
Getting A DataTable
Use these actions to get a DataTable from a component or asset:
Find a DataTableComponent on a GameObject and get its table.
DataTable Component Get DataTable
Get a table from an existing DataTableComponent.
Get a table from a DataTableAsset.
You can also create a local DataTable variable in your FSM and select it through DataTableSource.
Data Table Actions
Add a DataRecord as a new row.
Add an empty row to the table.
Add multiple rows from DataRecords or DataComponents.
Clear all rows from the table.
Check whether the table has zero rows.
Keep or remove rows based on a condition test.
Find the first row matching conditions.
Find the best-matching row based on scoring criteria.
Get the value of a specific cell.
Get the current row count.
Get a full DataRecord from a row.
Get a random row from the table.
Get row values into output variables.
Load table data from storage.
Remove a row by index.
Save table data to storage.
Set the value of a specific cell.
Set multiple values on a row.
Sort rows by one or more fields.
Trim rows to remove unused capacity or empty entries.
Debugging
You can inspect the resolved Data Table in the Unity Inspector while your FSM runs, whether it comes from an asset-backed table or a component-backed table. The table view updates as rows are added, removed, sorted, or edited, so you can verify data changes in real time.