Update AssetBundleBuilder
parent
c14db5fd0d
commit
661c3a6d61
|
@ -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;
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue