- Home /
 
Unity Photon Get Room List
Hey everyone, I want to get the room lists. This GameObject Rooms[] is a button that contains Room name and Join button. I just want to add this Rooms[] button to my menu when I join or create a Room.
     RoomInfo[] roomsList;
     public GameObject Rooms[];
     
     void OnReceivedRoomListUpdate(List<RoomInfo> roomList){
     for(int i = 0; i < roomList.length; i++){
     Rooms[].//get the GameObject of Rooms[]; **I dont know what to do here.**
     }
     }
 
               Can someone help to me? How can I do this?
               Comment
              
 
               
              Your answer