修改优化layer
This commit is contained in:
@@ -89,7 +89,7 @@ namespace BaseGames.Editor
|
||||
_listView.style.flexGrow = 1;
|
||||
_listView.selectionType = SelectionType.Single;
|
||||
_listView.showAlternatingRowBackgrounds = AlternatingRowBackground.ContentOnly;
|
||||
_listView.onSelectionChange += objects =>
|
||||
_listView.selectionChanged += objects =>
|
||||
{
|
||||
var sel = objects.OfType<T>().FirstOrDefault();
|
||||
if (sel != null) _savedGuid = AssetOperations.GetGuid(sel);
|
||||
@@ -227,7 +227,7 @@ namespace BaseGames.Editor
|
||||
{
|
||||
_listView.SetSelection(i);
|
||||
_listView.ScrollToItem(i);
|
||||
// SetSelection 在 RefreshItems 同帧内不保证触发 onSelectionChange,
|
||||
// SetSelection 在 RefreshItems 同帧内不保证触发 selectionChanged,
|
||||
// 显式调用以确保详情区始终同步。
|
||||
SelectionChanged?.Invoke(_filtered[i]);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user