mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-28 19:48:47 +00:00
update asset art scanner
This commit is contained in:
@@ -141,6 +141,13 @@ namespace YooAsset.Editor
|
|||||||
{
|
{
|
||||||
var selectScanner = _scannerListView.selectedItem as AssetArtScanner;
|
var selectScanner = _scannerListView.selectedItem as AssetArtScanner;
|
||||||
if (selectScanner != null)
|
if (selectScanner != null)
|
||||||
|
{
|
||||||
|
if (evt.newValue == null)
|
||||||
|
{
|
||||||
|
selectScanner.SaveDirectory = string.Empty;
|
||||||
|
AssetArtScannerSettingData.ModifyScanner(selectScanner);
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
string assetPath = AssetDatabase.GetAssetPath(evt.newValue);
|
string assetPath = AssetDatabase.GetAssetPath(evt.newValue);
|
||||||
if (AssetDatabase.IsValidFolder(assetPath))
|
if (AssetDatabase.IsValidFolder(assetPath))
|
||||||
@@ -153,6 +160,7 @@ namespace YooAsset.Editor
|
|||||||
Debug.LogWarning($"Select asset object not folder ! {assetPath}");
|
Debug.LogWarning($"Select asset object not folder ! {assetPath}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// 收集列表相关
|
// 收集列表相关
|
||||||
|
|||||||
Reference in New Issue
Block a user