icon预览和自动生成

This commit is contained in:
Bob.Song
2025-10-28 17:46:08 +08:00
parent af4dbc5cde
commit 7b8c6d5cec
204 changed files with 8454 additions and 174 deletions

View File

@@ -0,0 +1,13 @@
using UnityEditor;
namespace NBF
{
public class ModelViewEditWindow : EditorWindow
{
[MenuItem("NBC/工具/模型预览&Icon编辑")]
public static void ShowWindow()
{
GetWindow<RuntimePreviewEditor>("模型预览");
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 792c7ab2386446f9b3bbc86da9c90989
timeCreated: 1761634153

View File

@@ -299,7 +299,7 @@ public class RuntimePreviewEditor : EditorWindow
if (_previewPanel == null) return;
runtimeInstance = _previewPanel.LoadModel(prefab);
// runtimeInstance = _previewPanel.LoadModel(prefab);
runtimeInstance.hideFlags = HideFlags.DontSave;
if (runtimeInstance != null)