This video goes over the basic network settings to host a headless unity project on a Linux VPS. Using Netcode for Game Objects with the newer Unity transport. For Unity help and classes, check out my discord, / discord
Пікірлер: 6
@Steedie4 ай бұрын
Perfect video man thank you
@ntenn47635 ай бұрын
Great video. Very helpful
@alional90065 ай бұрын
hi. i cannot connect to my server even though i have given all permissions. i have no idea what i am missing.
@attilatoth15383 ай бұрын
Hey there! Love the tutorial, now question though, what if you're running a home server, mine is using Debian 12 and I'm able to tap into using casa OS, would there be similar premises and things I can do from this tutorial here?? Im still new to linux but I feel everything is cross compatible cause of the terminal, thanks!
@jamesprise4252 Жыл бұрын
can you possibly link to your start server script? thanks! great video
@fundycoding8028 Жыл бұрын
using UnityEngine; using Unity.Netcode; using System.Collections; public class Server : NetworkBehaviour { void Start() { string[] args = System.Environment.GetCommandLineArgs(); for(int i = 0; i < args.Length; i++) { if(args[i] == "-s") { Debug.Log("----------------Running as server-------------------"); NetworkManager.Singleton.StartServer(); NetworkManager.Singleton.OnClientConnectedCallback += ClientConnectMessage; StartCoroutine(PingClients()); } } } public void ClientConnectMessage(ulong connectionID) { Debug.Log("---------" + connectionID + " has connected---------"); } public IEnumerator PingClients() { yield return new WaitForSeconds(5f); while(NetworkManager.Singleton.IsServer) { yield return new WaitForSeconds(5f); Debug.Log("Sending ping..."); PingClientRpc(); } } [ClientRpc] public void PingClientRpc() { Debug.Log("Got ping from server!"); } }