diff --git a/Editor/Scripts/BuildTools.cs b/Editor/Scripts/BuildTools.cs index 9a99149..618fa84 100644 --- a/Editor/Scripts/BuildTools.cs +++ b/Editor/Scripts/BuildTools.cs @@ -44,7 +44,12 @@ public void OnPreprocessBuild(BuildReport report) } - FileUtil.CopyFileOrDirectory(env.editorFilePath, env.runtimeFilePath); + if (File.Exists(env.editorFilePath)) + { + + FileUtil.CopyFileOrDirectory(env.editorFilePath, env.runtimeFilePath); + + } }