mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-25 02:00:16 +00:00
update runtime code
This commit is contained in:
@@ -41,6 +41,7 @@ namespace YooAsset
|
||||
/// </summary>
|
||||
public const string PatchManifestFileVersion = "1.4.0";
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 构建输出文件夹名称
|
||||
/// </summary>
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user