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

Third Party Fixed rooms with Photon

Discussion in 'Multiplayer' started by unity_xGJ2BFEnG64GIw, Mar 19, 2021.

  1. unity_xGJ2BFEnG64GIw

    unity_xGJ2BFEnG64GIw

    Joined:
    Mar 19, 2021
    Posts:
    1
    Hello, I'm inexperienced with Unity, let alone Photon. Basically I want to have 3 rooms my players can join, instead of having them create their own rooms. Is there any way to add three premade rooms instead of having the player have to create them themselves?
     
  2. payalzariya07

    payalzariya07

    Joined:
    Oct 5, 2018
    Posts:
    85
    I think you used the room ID.
     
  3. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    3,018
    Sure you can use only 3 fixed rooms. Setup some UI for the user to pick, then pass the selected room's name to
    Code (CSharp):
    1. PhotonNetwork.JoinOrCreateRoom(name)
    .