FIXED: OnRoomListUpdate not being called OnEnable

kingnoah1337
edited July 2021 in DotNet
OnRoomListUpdate isn't displaying rooms that were created before the application was launched. I can only see new rooms being populated/removed for rooms created/destroyed AFTER the player has connected. Don't really know what to do about this cause this code has worked for me in the past. EDIT: Found out it was because I had been disabling the RoomList GameObject that contained this code and enabling it after it had connected to the lobby. Don't make my mistake!

Comments

  • kingnoah1337
    edited July 2021
    	public override void OnRoomListUpdate(List<RoomInfo> roomList)
    		{
    			//base.OnRoomListUpdate(roomList);
    	
    			UpdateRoomListView(roomList);
    		        print("I see rooms" + roomList.Count);  }
           
    		}