This is an example of how to use the Game Server Selector Unity Example.
Simple greater than query example. This query will return all servers that have a capacity greater than 20.
var searchRequest = new SearchServerRequest()
.AddGreaterThanQuery("capacity", 20);
var servers = _serverListManager.SearchServer(new CancellationToken(), searchRequest);
More complex query example. This query will return all servers that have a capacity greater than 20, game_mod is ranked and country is TR.
var searchRequest = new SearchServerRequest()
.AddGreaterThanQuery("capacity", 20)
.AddEqualQuery("game_mod", "ranked")
.AddEqualQuery("country", "TR");
var servers = _serverListManager.SearchServer(new CancellationToken(), searchRequest);
- Better UI for example