You can use Search tables to view, compare, and sort Search items by properties. From the table you can also modify data and export data to a .csv file or JSON.
To view your search in table format, enter a search query and click the table icon in the bottom right of the Unity Search window.
By default, the table will show the Label and Description columns unless you have added new columns or you are using a select{} statement that creates new columns from selectors.
Click the column header to sort the search results in ascending or descending order by that column property.
Click the reset icon () if no columns appear, or if the columns appear from the previous search and you want to reset to the default column layout.
To add a new column in the search table, click the plus icon (+) and choose a property or selector.
You can customize the name, icon, alignment and whether the column is sortable.
To edit your column, right-click the column header and select Edit <column name>.
字段 | 描述 |
---|---|
格式 | Changes the data about the results to another format. If the result has no data for the new format (for example asking for color information from position data), the cell will be blank. |
Icon | Changes the icon. |
名称 | Changes the name of the column |
Alignment | Changes the alignment of the column |
Sortable | Select to make the column sortable in the table |
路径 | Indicates the path of the property or sub property which is useful if you need to understand where a property is located. |
Selector | Indicates which property is accessed within the search query. This is useful if you wish to create queries for specific properties, for instance if you have a column for the Height property, you can check the Selector field and create a height search query for Assets using #m_Height . |
Click and hold the column header and drag it to rearrange the columns.
Right-click the column header and select Remove <column name>.
Once your table is set up, you may wish to hide certain columns temporarily without deleting them.
Right-click in the column header area and select Show Columns > <name of column>. The columns with a checkmark appear in the table.
Reset sets the table back to the default, with the Label and Description columns or will include columns specified in the select{} statement.
Click the reset icon () to remove all added columns or if the columns appear from the previous search and you want to reset to the default column layout.
Note: If you want to keep your current search table column layout, save your table before resetting.
To save your search table column layout:
Click the Save icon in the Saved Searches User or Project panel area, or the Save icon to the right of the Search field.
Unity Search includes the table layout with the saved search query. When a query is saved with a table its icon changes to the table icon.
You can export table data in JSON or .csv format. When you save using JSON, you can open the saved table data in Unity. This is static data from the time that you saved it that does not refresh.
To export table data:
You can modify data in the table using the Experimental format.
Note: When you change the data in the Unity Search table using the Experimental format, Search is not aware of any dependencies on the data. No changes to the custom Inspector code related to property editing are triggered. To ensure that your changes include dependencies or linked changes which are often embedded in custom code for common properties, make your changes in the Inspector instead.
To change the column to Experimental: