From 661c3a6d61fd3d7b8c8e676fbb1c5859c8e06427 Mon Sep 17 00:00:00 2001 From: hevinci Date: Mon, 17 Oct 2022 16:20:47 +0800 Subject: [PATCH] Update AssetBundleBuilder --- .../YooAsset/Editor/AssetBundleBuilder/BuildAssetInfo.cs | 4 ++-- .../YooAsset/Editor/AssetBundleBuilder/BuildBundleInfo.cs | 8 -------- 2 files changed, 2 insertions(+), 10 deletions(-) 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); - } - /// /// 获取构建的资源路径列表 ///