|
@@ -2,13 +2,14 @@ using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Linq;
|
|
|
|
+using System.Text;
|
|
using System.Threading;
|
|
using System.Threading;
|
|
|
|
+using LLM.Editor.Analysis;
|
|
using LLM.Editor.Helper;
|
|
using LLM.Editor.Helper;
|
|
using UnityEditor;
|
|
using UnityEditor;
|
|
using UnityEditorInternal;
|
|
using UnityEditorInternal;
|
|
using UnityEngine;
|
|
using UnityEngine;
|
|
|
|
|
|
-
|
|
|
|
namespace AssetBank.Editor
|
|
namespace AssetBank.Editor
|
|
{
|
|
{
|
|
public class AssetBankScanner : EditorWindow
|
|
public class AssetBankScanner : EditorWindow
|
|
@@ -23,7 +24,8 @@ namespace AssetBank.Editor
|
|
{
|
|
{
|
|
".meta",
|
|
".meta",
|
|
".dylib",
|
|
".dylib",
|
|
- ".bytes"
|
|
|
|
|
|
+ ".bytes",
|
|
|
|
+ ".dll"
|
|
};
|
|
};
|
|
|
|
|
|
private List<string> typesToIgnore = new List<string>()
|
|
private List<string> typesToIgnore = new List<string>()
|
|
@@ -42,6 +44,8 @@ namespace AssetBank.Editor
|
|
|
|
|
|
private List<ReorderableList> prefLists = new();
|
|
private List<ReorderableList> prefLists = new();
|
|
|
|
|
|
|
|
+ private StringBuilder projectReport = new StringBuilder();
|
|
|
|
+
|
|
[MenuItem("Window/Asset Database Scanner")]
|
|
[MenuItem("Window/Asset Database Scanner")]
|
|
public static void ShowWindow()
|
|
public static void ShowWindow()
|
|
{
|
|
{
|
|
@@ -111,7 +115,7 @@ namespace AssetBank.Editor
|
|
EditorGUILayout.Space();
|
|
EditorGUILayout.Space();
|
|
}
|
|
}
|
|
|
|
|
|
- if (GUILayout.Button("Clear cache", EditorStyles.miniButton))
|
|
|
|
|
|
+ if (GUILayout.Button("Clear cache"))
|
|
{
|
|
{
|
|
Directory.Delete(cachePath, true);
|
|
Directory.Delete(cachePath, true);
|
|
}
|
|
}
|
|
@@ -172,6 +176,9 @@ namespace AssetBank.Editor
|
|
|
|
|
|
private void SerializeProjectSettings()
|
|
private void SerializeProjectSettings()
|
|
{
|
|
{
|
|
|
|
+ ProjectSettingsProvider _provider = new ProjectSettingsProvider();
|
|
|
|
+ var q = _provider.GetContext(null, "QualitySettings");
|
|
|
|
+
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -216,7 +223,8 @@ namespace AssetBank.Editor
|
|
AssetMetaData assetMetaData = new AssetMetaData
|
|
AssetMetaData assetMetaData = new AssetMetaData
|
|
{
|
|
{
|
|
path = assetPath,
|
|
path = assetPath,
|
|
- guid = guid
|
|
|
|
|
|
+ guid = guid,
|
|
|
|
+ dependencies = AssetDatabase.GetDependencies(assetPath)
|
|
};
|
|
};
|
|
|
|
|
|
if (EditorUtility.DisplayCancelableProgressBar("Updating", "Updating meta for file" + assetPath,
|
|
if (EditorUtility.DisplayCancelableProgressBar("Updating", "Updating meta for file" + assetPath,
|
|
@@ -246,6 +254,8 @@ namespace AssetBank.Editor
|
|
{
|
|
{
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ AssetDatabase.LoadAssetAtPath(path, type);
|
|
AssetData assetData = new AssetData();
|
|
AssetData assetData = new AssetData();
|
|
|
|
|
|
// TODO: Serialization for asset types
|
|
// TODO: Serialization for asset types
|