8 changed files with 89 additions and 0 deletions
@ -0,0 +1,8 @@ |
|||||||
|
fileFormatVersion: 2 |
||||||
|
guid: 1ca9d2be9f9dc534d9bd79dce3db61b7 |
||||||
|
folderAsset: yes |
||||||
|
DefaultImporter: |
||||||
|
externalObjects: {} |
||||||
|
userData: |
||||||
|
assetBundleName: |
||||||
|
assetBundleVariant: |
@ -0,0 +1,8 @@ |
|||||||
|
fileFormatVersion: 2 |
||||||
|
guid: dddc0dce7a487354a88c27a20ddfb156 |
||||||
|
folderAsset: yes |
||||||
|
DefaultImporter: |
||||||
|
externalObjects: {} |
||||||
|
userData: |
||||||
|
assetBundleName: |
||||||
|
assetBundleVariant: |
@ -0,0 +1,15 @@ |
|||||||
|
%YAML 1.1 |
||||||
|
%TAG !u! tag:unity3d.com,2011: |
||||||
|
--- !u!114 &11400000 |
||||||
|
MonoBehaviour: |
||||||
|
m_ObjectHideFlags: 0 |
||||||
|
m_CorrespondingSourceObject: {fileID: 0} |
||||||
|
m_PrefabInstance: {fileID: 0} |
||||||
|
m_PrefabAsset: {fileID: 0} |
||||||
|
m_GameObject: {fileID: 0} |
||||||
|
m_Enabled: 1 |
||||||
|
m_EditorHideFlags: 0 |
||||||
|
m_Script: {fileID: 11500000, guid: 9247b1b02271436ca893eadb1fa8bdce, type: 3} |
||||||
|
m_Name: ExcelResolverEditorConfig |
||||||
|
m_EditorClassIdentifier: |
||||||
|
ExcelPath: |
@ -0,0 +1,8 @@ |
|||||||
|
fileFormatVersion: 2 |
||||||
|
guid: 4fd40b33958428a4ab4c705c25fc0ef5 |
||||||
|
NativeFormatImporter: |
||||||
|
externalObjects: {} |
||||||
|
mainObjectFileID: 11400000 |
||||||
|
userData: |
||||||
|
assetBundleName: |
||||||
|
assetBundleVariant: |
@ -0,0 +1,12 @@ |
|||||||
|
using Sirenix.OdinInspector; |
||||||
|
using UnityEngine; |
||||||
|
|
||||||
|
namespace Tools.ExcelResolver.Editor |
||||||
|
{ |
||||||
|
[InlineEditor(InlineEditorObjectFieldModes.CompletelyHidden)] |
||||||
|
public class ExcelResolverEditorConfig : ScriptableObject |
||||||
|
{ |
||||||
|
public string ExcelPath; |
||||||
|
public string JsonPath; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,3 @@ |
|||||||
|
fileFormatVersion: 2 |
||||||
|
guid: 9247b1b02271436ca893eadb1fa8bdce |
||||||
|
timeCreated: 1735745581 |
@ -0,0 +1,33 @@ |
|||||||
|
using Sirenix.OdinInspector; |
||||||
|
using Sirenix.OdinInspector.Editor; |
||||||
|
using UnityEditor; |
||||||
|
using UnityEngine; |
||||||
|
|
||||||
|
namespace Tools.ExcelResolver.Editor |
||||||
|
{ |
||||||
|
public class ExcelResolverEditorWindow : OdinEditorWindow |
||||||
|
{ |
||||||
|
public ExcelResolverEditorConfig config; |
||||||
|
|
||||||
|
[MenuItem("Tools/ExcelResolver")] |
||||||
|
private static void OpenWindow() |
||||||
|
{ |
||||||
|
GetWindow<ExcelResolverEditorWindow>().Show(); |
||||||
|
} |
||||||
|
|
||||||
|
[OnInspectorGUI] |
||||||
|
private void DrawGenerateButton() |
||||||
|
{ |
||||||
|
GUILayout.FlexibleSpace(); // 把空白区域推向上方 |
||||||
|
if (GUILayout.Button("Generate", GUILayout.Height(50))) |
||||||
|
{ |
||||||
|
Generate(); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
private void Generate() |
||||||
|
{ |
||||||
|
// 按钮逻辑 |
||||||
|
} |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue