void InitializeAssetList() { onProjectChange += RefreshList; createAssetIcon = new GUIContent(EditorGUIUtility.FindTexture("CreateAddNew"), "创建Asset"); searchField = new SearchField(); searchField.autoSetFocusOnFindCommand = true; projecListTreeView = BuildAssetsListTreeView(); projecListTreeView.Reload(); }
public void RefreshList() { projecListTreeView.Clear(); projecListTreeView = BuildAssetsListTreeView(); projecListTreeView.Reload(); }