update runtime code

pull/62/head
hevinci 2022-12-21 17:10:28 +08:00
parent 209e9d7705
commit 3b1a8beadf
2 changed files with 8 additions and 2 deletions

View File

@ -41,6 +41,7 @@ namespace YooAsset
/// </summary>
public const string PatchManifestFileVersion = "1.4.0";
/// <summary>
/// 构建输出文件夹名称
/// </summary>

View File

@ -83,9 +83,14 @@ namespace YooAsset
/// <summary>
/// 获取着色器资源包全名称(包含后缀名)
/// </summary>
public static string GetUnityShadersBundleFullName()
public static string GetUnityShadersBundleFullName(bool uniqueBundleName, string packageName)
{
return $"{YooAssetSettings.UnityShadersBundleName}.{Setting.AssetBundleFileVariant}";
string shareBundleName;
if (uniqueBundleName)
shareBundleName = $"{packageName.ToLower()}_{YooAssetSettings.UnityShadersBundleName}.{Setting.AssetBundleFileVariant}";
else
shareBundleName = $"{YooAssetSettings.UnityShadersBundleName}.{Setting.AssetBundleFileVariant}";
return shareBundleName.ToLower();
}
}
}