Unity Photon Network Let Host Decide When to Set Room Live?
Options
aidangig
✭
Hello!
I would like some help on how I can let the masterclient set the room live and for others to join on his command.
Find my code below. What is happening right now is after one player joins the room after Go Live button is pressed I have to reapply the button...
Any help would be much appreciated.
I would like some help on how I can let the masterclient set the room live and for others to join on his command.
Find my code below. What is happening right now is after one player joins the room after Go Live button is pressed I have to reapply the button...
Any help would be much appreciated.
if (SceneManager.GetActiveScene().name == "forge" && PhotonNetwork.room.IsVisible == false && PhotonNetwork.isMasterClient && currentGameMode != "FFA") { if (GUI.Button(new Rect(70, 95 + 260, 175, 50), "Go Live")) { //Spectator Options Code /*rc.PrepareRespawn(0, true); rc.ForgeLevelEditMain.SetActive(true); rc.ForgeCamera.SetActive(true); rc.ForgeUICamera.SetActive(true); rc.RoomCamera.SetActive(false); */ PhotonNetwork.room.IsVisible = true; } }
0