update editor code

pull/150/head
hevinci 2023-08-09 20:15:33 +08:00
parent e31799e78b
commit 0331b7b6e3
2 changed files with 5 additions and 1 deletions

View File

@ -204,6 +204,10 @@ namespace YooAsset.Editor
{
string address = collectInfoPair.Value.Address;
string assetPath = collectInfoPair.Value.AssetPath;
if (address.StartsWith("Assets/") || address.StartsWith("assets/"))
throw new Exception($"The address can not set asset path in collector : {CollectPath} \nAssetPath: {assetPath}");
if (addressTemper.TryGetValue(address, out var existed) == false)
addressTemper.Add(address, assetPath);
else

View File

@ -16,7 +16,7 @@ namespace YooAsset.Editor
{
string IAddressRule.GetAssetAddress(AddressRuleData data)
{
return data.AssetPath;
throw new System.Exception("可寻址模式下已经默认支持通过资源路径加载!");
}
}