The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

Try Our

Please check if you can find an answer in our extensive documentation on PUN.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

How to check and join a room with a specific name

2020-01-30 21:57:56

I created a room with a name, and I would like to join this room


2020-01-31 13:01:04

Hi @AlexLukanga,

Thank you for choosing Photon!

Just call JoinRoom(roomName) and implement callbacks for success & failure (e.g. game is full, game is closed, game does not exist).
There is also JoinOrCreate method which attempts to join then, if the room is not found, creates it.

2020-02-01 18:09:23

I just creted a funtion that check room but i'm geting this error :smile:

Assets\Scripts\Connect.cs(66,45): error CS7036: There is no argument given that corresponds to the required formal parameter 'typedLobby' of 'PhotonNetwork.GetCustomRoomList(TypedLobby, string)'

Back to top