icon预览和自动生成
This commit is contained in:
13
Assets/Scripts/Editor/Preview/ModelViewEditWindow.cs
Normal file
13
Assets/Scripts/Editor/Preview/ModelViewEditWindow.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using UnityEditor;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
public class ModelViewEditWindow : EditorWindow
|
||||
{
|
||||
[MenuItem("NBC/工具/模型预览&Icon编辑")]
|
||||
public static void ShowWindow()
|
||||
{
|
||||
GetWindow<RuntimePreviewEditor>("模型预览");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 792c7ab2386446f9b3bbc86da9c90989
|
||||
timeCreated: 1761634153
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user