mirror of https://github.com/tuyoogame/YooAsset
update package system
parent
ade97605f9
commit
54d89d957a
|
@ -154,11 +154,14 @@ namespace YooAsset
|
||||||
if (Manifest.EnableAddressable)
|
if (Manifest.EnableAddressable)
|
||||||
{
|
{
|
||||||
string location = packageAsset.Address;
|
string location = packageAsset.Address;
|
||||||
|
if (string.IsNullOrEmpty(location) == false)
|
||||||
|
{
|
||||||
if (Manifest.AssetPathMapping1.ContainsKey(location))
|
if (Manifest.AssetPathMapping1.ContainsKey(location))
|
||||||
throw new System.Exception($"Location have existed : {location}");
|
throw new System.Exception($"Location have existed : {location}");
|
||||||
else
|
else
|
||||||
Manifest.AssetPathMapping1.Add(location, packageAsset.AssetPath);
|
Manifest.AssetPathMapping1.Add(location, packageAsset.AssetPath);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 填充AssetPathMapping2
|
// 填充AssetPathMapping2
|
||||||
if (Manifest.IncludeAssetGUID)
|
if (Manifest.IncludeAssetGUID)
|
||||||
|
|
Loading…
Reference in New Issue