Hey everyone, I am having trouble creating a Network Lobby Manager script that uses my own UI and not the prebuilt one.Thanks you for your help. Code (CSharp): using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Networking; public class LobbyManager : NetworkLobbyManager{ void Update () { /* if (Sumbit InputField){ Set PlayerName to InputField value. Then add the player to the server and mark as ready. } */ } // The OnClick() function of the HOST button will call this. public void hostGame(){ // I need this to change the scene to Lobby and establish this client as Host. } // The OnClick() function of the JOIN button will call this. public void joinGame(){ // I need this to change the scene to Lobby and join a existing random lobby. } }
try to get the singleton and call StartHost(). Then on the JoinGame ge the singleton, set the network address,networkport and StartClient(). AFAIK the LobbyManager just derives from NetworkManager Edit: Since you derive from NetworkLobbyManager. You are the singleton. So just do this.StartHost(); and this.StartClient();