【发布时间】:2021-11-22 07:42:08
【问题描述】:
我创建了一个非常简单的 Unity Server,它使用一个简单的脚本(取自 here)。 我尝试使用以下命令通过 ubuntu bash 构建它:
~/Unity/Hub/Editor/2019.4.30f1/Editor/Unity -batchmode -nographics -logfile stdout.log -projectPath /path/to/the/project -buildLinux64Player /project/build/destination -quit
它奏效了!它能够创建一个工作构建。问题是也显示了 3D 窗口。我不想与任何游戏对象进行交互。 有没有办法在没有 GUI 的情况下创建或运行可执行文件? 如您所见,我使用了“batchmode”和“nographics”标志,它们本应阻止用户界面出现。
我犯了什么错误? 感谢您的宝贵时间。
【问题讨论】:
标签: unity3d build ubuntu-20.04