- Home /
Need help with joining a room in photon?
I've been working on a multiplayer bingo game using photon networking for multiplayer connectivity. The lobby connectivity and random room joining are working fine. But I wanted to create custom rooms for game modes.
I've provided a image file for your reference.
Here after joining a lobby there are different modes in which user can enter. I've already written code for creating and joining room but i don't know how to make custom rooms.
I just wanted to connect players who have enters particular game modes together, i.e 5 player want to play fast 5 game mode only they will be inside that room and so on. Please can somebody help me out with this. Thanks in advance.
@kaustubh_unity You can define CustomRoomPropertiesForLobby, like a Game$$anonymous$$ode one, then filter by those.
Thank you @JPhilipp . But I'm really confused about these two Properties. CustomRoomPropertiesForLobby and CustromRoomProperties . Don't know which is useful in my case. Please can you point me in the right direction.
Answer by abhishek21296 · Nov 25, 2020 at 09:25 AM
@kaustubh_unity You can add a custom property to your room which will denote the game type, and for joining, use joinrandomroom() with same custom properties to filter out the rooms.
Your answer
Follow this Question
Related Questions
PhotonNetwork.GetRoomList() output = 0 1 Answer
Photon Help~ for Fps Muti 0 Answers
Why does Photon find a room so quick! 1 Answer
OnConnectedToMaster() vs IsConnectedAndReady? 1 Answer
photon marco polo tutorial issue with "peercreated" 1 Answer