Build Server and Client
I'm trying to get automated builds for a server and a client. I've got both building (Linux and Windows), but there are two issues I can't seem to figure out:
- The Windows build seems to be building in Editor mode, as it isn't seeing this code:
#if !UNITY_EDITOR
hostButton.gameObject.SetActive(false);
#endif
When I open the newly built client, it will show the host button. But if I build from Unity itself, the button will not be shown. Is there anyway I can force it to build not as Editor?
- The Linux build seems to not be building as a server ("Server Build"). I cannot see a command line argument for it either: https://docs.unity3d.com/Manual/CommandLineArguments.html
Does it build as server automatically? If so, it takes around 10 minutes longer than the Windows build.
Edited by Gabriel Le Breton