Update AssetBundleBuilder

pull/51/head
hevinci 2022-10-17 16:20:47 +08:00
parent c14db5fd0d
commit 661c3a6d61
2 changed files with 2 additions and 10 deletions

View File

@ -63,7 +63,7 @@ namespace YooAsset.Editor
IsRawAsset = isRawAsset; IsRawAsset = isRawAsset;
System.Type assetType = UnityEditor.AssetDatabase.GetMainAssetTypeAtPath(assetPath); System.Type assetType = UnityEditor.AssetDatabase.GetMainAssetTypeAtPath(assetPath);
if (assetType == typeof(UnityEngine.Shader)) if (assetType == typeof(UnityEngine.Shader) || assetType == typeof(UnityEngine.ShaderVariantCollection))
IsShaderAsset = true; IsShaderAsset = true;
else else
IsShaderAsset = false; IsShaderAsset = false;
@ -76,7 +76,7 @@ namespace YooAsset.Editor
IsRawAsset = false; IsRawAsset = false;
System.Type assetType = UnityEditor.AssetDatabase.GetMainAssetTypeAtPath(assetPath); System.Type assetType = UnityEditor.AssetDatabase.GetMainAssetTypeAtPath(assetPath);
if (assetType == typeof(UnityEngine.Shader)) if (assetType == typeof(UnityEngine.Shader) || assetType == typeof(UnityEngine.ShaderVariantCollection))
IsShaderAsset = true; IsShaderAsset = true;
else else
IsShaderAsset = false; IsShaderAsset = false;

View File

@ -89,14 +89,6 @@ namespace YooAsset.Editor
return result.ToArray(); return result.ToArray();
} }
/// <summary>
/// 获取文件的扩展名
/// </summary>
public string GetAppendExtension()
{
return System.IO.Path.GetExtension(BundleName);
}
/// <summary> /// <summary>
/// 获取构建的资源路径列表 /// 获取构建的资源路径列表
/// </summary> /// </summary>