Legacy Documentation: Version 5.3
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

MatchDesc

class in UnityEngine.Networking.Match

/

Inherits from: Networking.Match.ResponseBase

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

A member contained in a ListMatchResponse.matches list. Each element describes an individual match.

Variables

averageEloScoreThe optional game defined Elo score for the match as a whole. The Elo score is averaged against all clients in a match and that value is used to produce better search results when listing available matches. If the Elo is provided the result set will be ordered according to the magnitude of the absoloute value of the difference of the a client searching for a match and the network average for all clients in each match. If the Elo score is not provided (and therefore 0 for all matches) the Elo score will not affect the search results. Each game can calculate this value as they wish according to whatever scale is best for that game.
currentSizeCurrent number of users connected to a match.
directConnectInfosDirect connection info for network games; This is not required for games utilizing matchmaker.
hostNodeIdThe NodeID of the host in a matchmaker match.
isPrivateDescribes if this match is considered private.
matchAttributesMatch attributes describing game specific features for this match. Each attribute is a key/value pair of a string key with a long value. Each match may have up to 10 of these values. The game is free to use this as desired to assist in finding better match results when clients search for matches to join.
maxSizeMax number of users that may connect to a match.
nameName of the match.
networkIdNetworkID of the match.

Public Functions

ToStringProvides string description of current class data.

Inherited members