- Home /
CommandLine build won't find scene file
I am trying to get an automated build of my scene. My build.bat file looks like this
"C:\Program Files\Unity\Editor\Unity.exe" -quit -batchmode -logFile stdout.log -buildWindowsPlayer "builds\build.exe"
I've looked inside ProjectSettings\EditorBuildSettings.asset This file contains the scene I want to build. This file is populated as a result of picking a scene in the build settings of the Unity editor.
path: Assets/_Scenes/SampleScene.unity
build.exe does not appear upon triggering build.bat via a TFS build step. stdout.log is generated and contains the message
'' is an incorrect path for a scene file. BuildPlayer expects paths relative to the project folder.
So it thinks my scene file to build is ''. Furthermore, there is no way to specify the scene file to build as a CommandLine argument.
Why doesn't the CommandLine build use the scene specified in my EditorBuildSettings.asset?
Your answer
Follow this Question
Related Questions
Error building a Unity Linux app through Cygwin 2 Answers
Command line build failing but works great when run from the editor. 3 Answers
command-line build only: error CS0234: `Linq' does not exist in the namespace `System.Xml' 0 Answers
Standalone MacOS build - PlayerIcon.icns problem 1 Answer
Weird errors when running Unity from the command line 1 Answer