From 68e14a48f1265801070188d575c0f60c457e7f2c Mon Sep 17 00:00:00 2001 From: hevinci Date: Wed, 3 Aug 2022 15:46:27 +0800 Subject: [PATCH] Update asset setting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 不再提供着色器收集选项,已经内置为必定收集。 优化了SBP打包着色器收集系统。 --- Assets/YooAsset/Runtime/Settings/YooAssetSettings.cs | 4 ++-- Assets/YooAsset/Runtime/Settings/YooAssetSettingsData.cs | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Assets/YooAsset/Runtime/Settings/YooAssetSettings.cs b/Assets/YooAsset/Runtime/Settings/YooAssetSettings.cs index d3828a7..a63bc3d 100644 --- a/Assets/YooAsset/Runtime/Settings/YooAssetSettings.cs +++ b/Assets/YooAsset/Runtime/Settings/YooAssetSettings.cs @@ -42,8 +42,8 @@ namespace YooAsset public const string VersionFileName = "StaticVersion.bytes"; /// - /// Unity内置着色器资源包名称 + /// Unity着色器资源包名称 /// - public const string UnityBuiltInShadersBundleName = "UnityBuiltInShaders.bundle"; + public const string UnityShadersBundleName = "unityshaders"; } } \ No newline at end of file diff --git a/Assets/YooAsset/Runtime/Settings/YooAssetSettingsData.cs b/Assets/YooAsset/Runtime/Settings/YooAssetSettingsData.cs index 9d49485..d4bcdfb 100644 --- a/Assets/YooAsset/Runtime/Settings/YooAssetSettingsData.cs +++ b/Assets/YooAsset/Runtime/Settings/YooAssetSettingsData.cs @@ -55,5 +55,13 @@ namespace YooAsset { return $"{Setting.PatchManifestFileName}_{resourceVersion}.hash"; } + + /// + /// 获取着色器资源包全名称(包含后缀名) + /// + public static string GetUnityShadersBundleFullName() + { + return $"{YooAssetSettings.UnityShadersBundleName}.{Setting.AssetBundleFileVariant}"; + } } } \ No newline at end of file