public static void ShowWindow() { CodeGeneratorEditor myWindow = (CodeGeneratorEditor)GetWindow(typeof(CodeGeneratorEditor), true, "代码模板生成工具", true); //创建窗口 myWindow.minSize = new Vector2(425, 540); myWindow.maxSize = new Vector2(425, 540); myWindow.Show(); //展示 }
public static void CodeGenerator() { CodeGeneratorEditor.ShowWindow(); }