Optimize assetbundle build parameters

优化了资源包的构建参数:始终开启DisableLoadAssetByFileName
This commit is contained in:
hevinci
2022-05-13 21:58:23 +08:00
parent 029b850d6b
commit a054740de6
8 changed files with 16 additions and 59 deletions
@@ -41,11 +41,6 @@ namespace YooAsset
/// </summary>
internal string Error { private set; get; }
/// <summary>
/// 资源对象名称
/// </summary>
public string AssetName { private set; get; }
/// <summary>
/// 资源路径
/// </summary>
@@ -69,7 +64,6 @@ namespace YooAsset
_patchAsset = patchAsset;
AssetType = assetType;
AssetPath = patchAsset.AssetPath;
AssetName = Path.GetFileName(patchAsset.AssetPath);
Error = string.Empty;
}
internal AssetInfo(PatchAsset patchAsset)
@@ -80,7 +74,6 @@ namespace YooAsset
_patchAsset = patchAsset;
AssetType = null;
AssetPath = patchAsset.AssetPath;
AssetName = Path.GetFileName(patchAsset.AssetPath);
Error = string.Empty;
}
internal AssetInfo(string error)
@@ -88,7 +81,6 @@ namespace YooAsset
_patchAsset = null;
AssetType = null;
AssetPath = string.Empty;
AssetName = string.Empty;
Error = error;
}
}