// Creating a new filterData object
SWLobbyFilterData filterData = new SWLobbyFilterData();
// Adding a string typed filter
// with name equals to "level" and
// value equals to "hard"
filterData.AddFilter("level", "hard");
// Adding a int typed index
// with name equals to "rank" and
// value between 1 to 100
filterData.AddFilter("rank", 1, 100);
// Using the filterData to filter rooms
// 10 is the max number of return rooms
NetworkClient.Lobby.FilterRoom(filterData, 10, (okay, reply, error) =>{
Debug.Log("Filtered rooms " + reply);
Debug.Log("Failed to Filtered rooms " + error);