diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildAssetInfo.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildAssetInfo.cs index 53abb7f..308b1e1 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildAssetInfo.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildAssetInfo.cs @@ -63,7 +63,7 @@ namespace YooAsset.Editor IsRawAsset = isRawAsset; System.Type assetType = UnityEditor.AssetDatabase.GetMainAssetTypeAtPath(assetPath); - if (assetType == typeof(UnityEngine.Shader)) + if (assetType == typeof(UnityEngine.Shader) || assetType == typeof(UnityEngine.ShaderVariantCollection)) IsShaderAsset = true; else IsShaderAsset = false; @@ -76,7 +76,7 @@ namespace YooAsset.Editor IsRawAsset = false; System.Type assetType = UnityEditor.AssetDatabase.GetMainAssetTypeAtPath(assetPath); - if (assetType == typeof(UnityEngine.Shader)) + if (assetType == typeof(UnityEngine.Shader) || assetType == typeof(UnityEngine.ShaderVariantCollection)) IsShaderAsset = true; else IsShaderAsset = false; diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildBundleInfo.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildBundleInfo.cs index b222759..e698477 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildBundleInfo.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildBundleInfo.cs @@ -89,14 +89,6 @@ namespace YooAsset.Editor return result.ToArray(); } - /// - /// 获取文件的扩展名 - /// - public string GetAppendExtension() - { - return System.IO.Path.GetExtension(BundleName); - } - /// /// 获取构建的资源路径列表 ///