From 3693f1ea98602de2437949941d4caeb83aceb830 Mon Sep 17 00:00:00 2001 From: hevinci Date: Mon, 20 Jun 2022 10:18:51 +0800 Subject: [PATCH] Update AssetInfo.cs Add Address filed. --- Assets/YooAsset/Runtime/PatchSystem/AssetInfo.cs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Assets/YooAsset/Runtime/PatchSystem/AssetInfo.cs b/Assets/YooAsset/Runtime/PatchSystem/AssetInfo.cs index d72f427..9642b16 100644 --- a/Assets/YooAsset/Runtime/PatchSystem/AssetInfo.cs +++ b/Assets/YooAsset/Runtime/PatchSystem/AssetInfo.cs @@ -1,5 +1,4 @@ -using System.IO; - + namespace YooAsset { public class AssetInfo @@ -41,11 +40,16 @@ namespace YooAsset /// internal string Error { private set; get; } + /// + /// 可寻址地址 + /// + public string Address { private set; get; } + /// /// 资源路径 /// public string AssetPath { private set; get; } - + /// /// 资源类型 /// @@ -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; }