update asset bundle collector

This commit is contained in:
hevinci
2023-10-07 15:03:56 +08:00
parent 6877900ac2
commit e02fe2331d
7 changed files with 72 additions and 43 deletions

View File

@@ -40,11 +40,6 @@ namespace YooAsset.Editor
/// </summary>
public System.Type AssetType { private set; get; }
/// <summary>
/// 是否为着色器资源
/// </summary>
public bool IsShaderAsset { private set; get; }
/// <summary>
/// 资源的分类标签
/// </summary>
@@ -66,10 +61,6 @@ namespace YooAsset.Editor
AssetGUID = UnityEditor.AssetDatabase.AssetPathToGUID(assetPath);
AssetType = UnityEditor.AssetDatabase.GetMainAssetTypeAtPath(assetPath);
if (AssetType == typeof(UnityEngine.Shader) || AssetType == typeof(UnityEngine.ShaderVariantCollection))
IsShaderAsset = true;
else
IsShaderAsset = false;
}
public BuildAssetInfo(string assetPath)
{
@@ -79,10 +70,6 @@ namespace YooAsset.Editor
AssetGUID = UnityEditor.AssetDatabase.AssetPathToGUID(assetPath);
AssetType = UnityEditor.AssetDatabase.GetMainAssetTypeAtPath(assetPath);
if (AssetType == typeof(UnityEngine.Shader) || AssetType == typeof(UnityEngine.ShaderVariantCollection))
IsShaderAsset = true;
else
IsShaderAsset = false;
}