Legacy Documentation: Version 5.2
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

Switch to Manual

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

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961