public static void ShowWindow() { ConfigGeneratorEditor myWindow = (ConfigGeneratorEditor)EditorWindow.GetWindow(typeof(ConfigGeneratorEditor), true, "Excel转Config工具", true); //创建窗口 myWindow.minSize = new Vector2(425, 540); myWindow.maxSize = new Vector2(425, 540); myWindow.Show(); //展示 }
public static void Excel2Config() { ConfigGeneratorEditor.ShowWindow(); }