I am trying out the new widget system for unity NGO.
but there is no widget for transfering scenes when all players have conected to a lobby. I tried to do this myself but with no success. Is there someone who could help me with this?
Heres my setup:
using UnityEngine;
public class NetworkUI : MonoBehaviour
{
public void OnStartGamePressed()
{
if (!NetworkManager.Singleton.IsHost) return;
NetworkManager.Singleton.SceneManager.LoadScene("GameScene",
UnityEngine.SceneManagement.LoadSceneMode.Single);
}
}```
And i use the widgets for creating a lobby, joining a lobby by code and some other visual ones.
Ive added the code above onto a button, for when the players have connected but i found out that this doesnt work. any tips or help?
Thanks in advance