Skip to content

Commit

Permalink
确保PostBuildProcess在编译Build Player阶段才进行,加上EditorApplication.isPlayingO…
Browse files Browse the repository at this point in the history
…rWillChangePlaymode作为判断
  • Loading branch information
mr-kelly committed Jul 2, 2016
1 parent 76294ad commit 5433655
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion KEngine
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class LuaModuleEditor
[PostProcessScene]
private static void OnPostProcessScene()
{
if (!_hasBeforeBuildApp)
if (!_hasBeforeBuildApp && !EditorApplication.isPlayingOrWillChangePlaymode)
{
_hasBeforeBuildApp = true;
// 这里是编译前, 对Lua进行编译处理
Expand Down

0 comments on commit 5433655

Please sign in to comment.