diff options
author | chai <chaifix@163.com> | 2021-10-24 20:38:24 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-24 20:38:24 +0800 |
commit | 180b715e72ffc292ebbc4695f8a63ce449004d27 (patch) | |
tree | 304b297eeb220cd28b6f066d7a0476a681b7a7da | |
parent | 396b51b0b9e16ba7a8f34e426e7d1332f84419bc (diff) |
*自动启动Editor.exe
-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() |