Version: 2022.3
public float itemIconSize ;

描述

Defines the size of items in the search view.

.

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;
    }
}