PhotonNetwork.CreateRoom() joins the room that is made

Options
PhotonNetwork.CreateRoom() joins the room that is made. How do I make is so it just makes it?

Comments

  • Hi @Moddwyn,

    PhotonNetwork.CreateRoom(...) creates and automatically joins that room afterwards. There is no option to just create the room without joining it.

    What you can do instead is using the RoomOptions in order to set its EmptyRoomTtl to a value larger than 0. This makes the room still existing for a given time even if it is empty. You still have to use PhotonNetwork.CreateRoom(...) in order to create and join the room and leave it afterwards. Since this is a bit over the top, this is not recommended.