Data Table Widget Get Selection
Gets the current selection from a DataTableWidget.
Parameters
| Parameter | Description |
|---|---|
| Widget | The DataTableWidget. |
| Event System Fallback | If true, tries to map Unity UI's current selected object back to a row when the widget has no internal selection. Default is true. |
| Has Selection | Output. True when a selection was found. |
| Selected Row Key | Output. The selected row key, or empty if the row does not use a key. |
| Selected Row Index | Output. The selected row index in the Data Table, or -1 if unavailable. |
| Selected Row Game Object | Output. The selected row GameObject if that row is currently visible. |
Details
- If
Widgetis not set, the action does nothing. - Before reading the widget, the action resets outputs to
false, empty,-1, andnull. Selected Row Game Objectis only available when the selected row is currently instantiated and visible in the widget.