编辑器完善

This commit is contained in:
2026-01-08 14:00:08 +08:00
parent bba4f96175
commit 179a971629
17 changed files with 3670 additions and 3719 deletions
@@ -4,6 +4,8 @@ using UnityEngine;
using UnityEngine.AddressableAssets;
using UnityEngine.ResourceManagement.AsyncOperations;
using AibisDream.Utility;
using UnityEditor.U2D.PSD;
#if UNITY_EDITOR
using UnityEditor;
@@ -114,6 +116,19 @@ namespace AibisDream.Framework
}
}
}
else if (asset is Sprite texture && AssetImporter.GetAtPath(path) is PSDImporter psdImporter)
{
if (TryGetAddressableKey(path, out var addressableKeyPrefix))
{
addressableKey = $"{addressableKeyPrefix}[{texture.name}]";
return true;
}
else
{
addressableKey = addressableKeyPrefix;
return false;
}
}
// 其他情况正常输出
return TryGetAddressableKey(path, out addressableKey);
}