diff options
-rw-r--r-- | Resources/.vscode/KillEditor.bat | 1 | ||||
-rw-r--r-- | Resources/.vscode/launch.json | 3 | ||||
-rw-r--r-- | 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() |