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;
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;

View File

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