定义搜索视图中项目的尺寸。
.
using UnityEditor; using UnityEditor.Search; static class Example_ISearchView_itemIconSize { [MenuItem("Examples/ISearchView/itemIconSize")] public static void Run() { // SearchService can open a SearchView. var view = SearchService.ShowContextual("asset"); view.itemIconSize = 45; } }