我正在尝试使用 TeamCity 构建一个简单的 Unity3D 项目。问题是 TeamCity 找不到场景文件,我收到以下错误消息:
"C:\Program Files (x86)\Unity\Editor\Unity.exe" -batchMode -quit -nographics -projectPath C:\unityProject
[catting log file]
'' is an incorrect path for a scene file. BuildPlayer expects paths relative to the project folder.
'' is an incorrect path for a scene file. BuildPlayer expects paths relative to the project folder.
该图像显示了我如何设置构建。当我在计算机上使用命令行运行构建时,构建项目没有问题,只需使用 TeamCity。我在想是否有办法在编辑器中添加场景文件。我不想使用“方法执行”并运行 BuildPipeline.BuildPlayer() 方法。