From 180b715e72ffc292ebbc4695f8a63ce449004d27 Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 24 Oct 2021 20:38:24 +0800 Subject: =?UTF-8?q?*=E8=87=AA=E5=8A=A8=E5=90=AF=E5=8A=A8Editor.exe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Resources/.vscode/KillEditor.bat | 1 + Resources/.vscode/launch.json | 3 +-- Resources/Scripts/EditorApplication.lua | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Resources/.vscode/KillEditor.bat b/Resources/.vscode/KillEditor.bat index e69de29..8ba7d7a 100644 --- a/Resources/.vscode/KillEditor.bat +++ b/Resources/.vscode/KillEditor.bat @@ -0,0 +1 @@ +taskkill /f /im Editor.exe \ No newline at end of file diff --git a/Resources/.vscode/launch.json b/Resources/.vscode/launch.json index b5d9eb7..4248412 100644 --- a/Resources/.vscode/launch.json +++ b/Resources/.vscode/launch.json @@ -18,8 +18,7 @@ "autoPathMode": true, // 自动启动编辑器 // https://stackoverflow.com/questions/34698230/how-to-run-multiple-commands-via-start-command/34698365 - //"preLaunchTask": "LaunchEditor", - //"postDebugTask": "KillEditor" + "preLaunchTask": "LaunchEditor", "postDebugTask": "KillEditor" }, { "type": "lua", diff --git a/Resources/Scripts/EditorApplication.lua b/Resources/Scripts/EditorApplication.lua index 847dbf0..a6515ba 100644 --- a/Resources/Scripts/EditorApplication.lua +++ b/Resources/Scripts/EditorApplication.lua @@ -46,6 +46,8 @@ Debug.Log(inspect(c)) Debug.Log(inspect(GL.EBufferType)) +GL.Clear() + while true do app:PullMessage() -- cgit v1.1-26-g67d0