Update AssetInfo.cs

Add Address filed.
pull/14/head
hevinci 2022-06-20 10:18:51 +08:00
parent b59fb0d811
commit 3693f1ea98
1 changed files with 10 additions and 3 deletions

View File

@ -1,5 +1,4 @@
using System.IO;

namespace YooAsset
{
public class AssetInfo
@ -41,6 +40,11 @@ namespace YooAsset
/// </summary>
internal string Error { private set; get; }
/// <summary>
/// 可寻址地址
/// </summary>
public string Address { private set; get; }
/// <summary>
/// 资源路径
/// </summary>
@ -63,6 +67,7 @@ namespace YooAsset
_patchAsset = patchAsset;
AssetType = assetType;
Address = patchAsset.Address;
AssetPath = patchAsset.AssetPath;
Error = string.Empty;
}
@ -73,6 +78,7 @@ namespace YooAsset
_patchAsset = patchAsset;
AssetType = null;
Address = patchAsset.Address;
AssetPath = patchAsset.AssetPath;
Error = string.Empty;
}
@ -80,6 +86,7 @@ namespace YooAsset
{
_patchAsset = null;
AssetType = null;
Address = string.Empty;
AssetPath = string.Empty;
Error = error;
}