Skip to content

Commit 5433655

Browse files
committed
确保PostBuildProcess在编译Build Player阶段才进行,加上EditorApplication.isPlayingOrWillChangePlaymode作为判断
1 parent 76294ad commit 5433655

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

KSFramework/Assets/Plugins/KSFramework/Modules/LuaModule/Editor/LuaModuleEditor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class LuaModuleEditor
5454
[PostProcessScene]
5555
private static void OnPostProcessScene()
5656
{
57-
if (!_hasBeforeBuildApp)
57+
if (!_hasBeforeBuildApp && !EditorApplication.isPlayingOrWillChangePlaymode)
5858
{
5959
_hasBeforeBuildApp = true;
6060
// 这里是编译前, 对Lua进行编译处理

0 commit comments

Comments
 (0)