Data Table UI
Use the Data Table Widget when you want to display table rows in UI.
This page focuses on the common setup pattern for connecting a Data Table to a widget-driven list.
Typical Setup
- Add Data Table Widget to a UI object.
- Set the table reference to a
DataTableAssetorDataTableComponent. - Assign a
ContentRectTransform, usually the content area of aScrollRect. - Assign a row prefab.
- Optionally assign paging, selection, or drag-reorder helpers.
What the Widget Can Do
The widget can:
- Rebuild automatically when table rows change
- Refresh visible rows when values change
- Support paging
- Support row selection
- Support delete and reorder interactions
Common Pattern
A common workflow looks like this:
- Build the table data in a
DataTableAssetorDataTableComponent. - Point the widget at that table.
- Create a row prefab that reads values from each record.
- Let PlayMaker actions update the table while the widget refreshes the visible rows.
This works well for menus such as inventory, shops, quest logs, leaderboards, and message lists.