How can i get a room's data by name?

I can't seem to find a function to grab a rooms data by name(for example player count) from what I see there is a GetRoom() in pun classic but maybe not in the new pun?(sorry if this is wrong place and sorry if I said this all wrong)

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @TitanGamma,

    Thank you for choosing Photon!

    There is no way in Photon Realtime SDKs, PUN Classic or PUN2 to get room data by name.

    What you can do is join a lobby of supported type and see the list of rooms visible there.
    But the question is why do you need this?
    You probably want to try random join with a filter without the need to join a lobby and list its rooms. If there is no match you can change the filter and retry or create a new room.
  • hmm ok
  • TitanGamma
    edited August 2019
    thanks for the info