fully command line driven builds

I am trying to setup automation for unity3d builds without a companion build pipeline static method

My attempts thus far fail, unity complains about ‘’ is an incorrect scene path. Can I not set the scene path from command line? If I set the scene in the project, save and close, then the build works.

No where that I can find in the documentation mentions how to specify the scene in the command line arguments. Thus, I’m not too surprised this isn’t working.

“C:\Program Files\Unity\Editor\Unity.exe” -batchmode -nographics -quit -projectPath “C:\unity-project” -buildWindowsPlayer “C:\unity-project\test.exe” “C:\unity-project\Assets\Scene_01.unity”

Gives the error:

Aborting batchmode due to failure:
‘’ is an incorrect path for a scene file. BuildPlayer expects paths relative to the project folder.

I get the same error if I change directory to the project path and use Assets\Scene_01.unity, and many variation of this.

Values tried for the scene

Scene_01.unity

./Scene_01.unity

.\Scene_01.unity

Assets/Scene_01.unity

Assets\Scene_01.unity

./Assets/Scene_01.unity

.\Assets\Scene_01.unity

/Assets/Scene_01.unity

\Assets\Scene_01.unity

Hey Payonel, you probably already figured something out, but for anyone else who might have this same issue, I wrote an article on how to do more complex things on the Unity command line. Have a look at Loading...