Skip to main content
Version: 6.0.0

FindPlayersWithAttributesUsingFilter

Finds matchmaking enabled players using a cloud code filter and additional attributes.

Additional information of filters can be found under Matchmaking Filters.

ServiceOperation
matchMakingFIND_PLAYERS_USING_FILTER

Method Parameters​

ParameterDescription
rangeDeltaHow close an opponents rating must be to yours
numMatchesThe maximum number of matches to return
jsonAttributesAttributes match criteria
jsonExtraParmsParameters to be passed to the filter

Usage​

http://localhost:3000
int rangeDelta = 10;
int numMatches = 1;
string jsonAttributes = "{\"key\":\"value\"}";
string jsonExtraParms = "{\"parm1\":10}";
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.MatchMakingService.FindPlayersWithAttributesUsingFilter(rangeDelta, numMatches, jsonAttributes, jsonExtraParms, successCallback, failureCallback);