Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How to make a Lobby Scene (with Photon Unity Networking-PUN)

Discussion in 'UGUI & TextMesh Pro' started by Sandman_Ivan, Jun 28, 2016.

  1. Sandman_Ivan

    Sandman_Ivan

    Joined:
    May 6, 2015
    Posts:
    5
    So I have been looking everywhere and I can't seem to find any instance of Photon or Unity being able to handle a Lobby Scene where when connected to the server, the UI shows all the available rooms that have been created. At best I can find some random connection setups but nothing that list off all the rooms. This is a good example of what I am talking about

    I mean maybe not as complex with its information requirements. maybe just: Name of room, Number of players, If it's Password Protected (which is something I don't know how to do)

    I think it has something to do with PhotonNetwork.GetRoomList which I know is an array but I can't seem to write it out to be used.

    I tried PhotonNetwork.countOfRooms but even after telling the server to make multiple rooms it only counts 0.

    If anyone has any ideas that would be helpful.
     
  2. Mad_Mark

    Mad_Mark

    Joined:
    Oct 30, 2014
    Posts:
    482
    @Sandman_Ivan any luck with this? I am looking for some method for implementing a lobby system. It seems that this particular part of PUN is confusing as hell, and Exit_Games isn't doing anything to make it better.

    Mark