update asset art scanner

pull/464/head
何冠峰 2025-01-22 17:22:45 +08:00
parent ef4f011cf6
commit ae0fbd4b10
1 changed files with 12 additions and 4 deletions

View File

@ -141,6 +141,13 @@ namespace YooAsset.Editor
{
var selectScanner = _scannerListView.selectedItem as AssetArtScanner;
if (selectScanner != null)
{
if (evt.newValue == null)
{
selectScanner.SaveDirectory = string.Empty;
AssetArtScannerSettingData.ModifyScanner(selectScanner);
}
else
{
string assetPath = AssetDatabase.GetAssetPath(evt.newValue);
if (AssetDatabase.IsValidFolder(assetPath))
@ -153,6 +160,7 @@ namespace YooAsset.Editor
Debug.LogWarning($"Select asset object not folder ! {assetPath}");
}
}
}
});
// 收集列表相关