Skip to content

Commit

Permalink
Merge pull request #5 from CandyCoded/hotfix/check-path-before-copying
Browse files Browse the repository at this point in the history
[hotfix] Check to see if editor file exists before copying path to runtime folder.
  • Loading branch information
neogeek authored Aug 4, 2022
2 parents 3cb246a + 0bb61fc commit ccd15fc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Editor/Scripts/BuildTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

}

}

Expand Down

0 comments on commit ccd15fc

Please sign in to comment.