我想從命令行只建立一個統一的3d項目,沒有伴隨構建管道靜態方法。如何從命令行設置統一構建場景路徑
我的嘗試失敗了,統一抱怨''是不正確的場景路徑。我不能從命令行設置場景路徑嗎?
"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"
給出了錯誤:
Aborting batchmode due to failure: '' is an incorrect path for a scene file. BuildPlayer expects paths relative to the project folder.
我得到同樣的錯誤,如果我更改目錄到項目路徑並使用Assets\Scene_01.unity
,和這麼多的變化。
編輯 值審判現場
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
注意,沒有在那裏,我已經能夠找到它說,你甚至可以在指定的場景(S)命令行。我覺得團結不希望我這樣做。
我希望你錯了,但我認爲你不是。 – payo