mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-25 02:00:16 +00:00
Update AssetBundleBuilder
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user