How can I know if the room (name) is created

Hello, I want to list few default rooms like Room1, Room2. So if the room is empty the room of course is not there or created. So unity code part handles this and shows "fake" rooms in the roombrowser. So but if the room is created so there are two same rooms on browser. The fake one and the real one. So I need something like if (roomExistsWithName). Is there something like that or do I need to loop it everytime the (I think it was) GetRooms list function and check if the room is created?

Comments

  • HI,
    The simplest solution would be not to add room name in list if it's already there.
  • So you mean I need to loop it :)
    I did it now. I just hoped for something like "bool PhotoNetwork.RoomExists"
  • From performance perspective loop is ok while room count is below couple of tens I guess.
    If more than that, you may optimize it with parallel dictionary.