Version: 2017.3 (switch to 2017.4)
LanguageEnglish
  • C#
  • JS

Script language

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

MatchInfoDirectConnectSnapshot

class in UnityEngine.Networking.Match

Description

A class describing one member of a match and what direct connect information other clients have supplied.

A "MatchInfoDirectConnectSnapshot" instance contains mostly optional data which a connection can supply when it creates or joins a match. That info is then returned in these results so that other clients can directly connect to that client instead of going through the internet via a relay server.

Properties

hostPriorityThe host priority for this direct connect info. Host priority describes the order in which this match member occurs in the list of clients attached to a match.
nodeIdNodeID of the match member this info refers to.
privateAddressThe private network address supplied for this direct connect info.
publicAddressThe public network address supplied for this direct connect info.

Did you find this page useful? Please give it a rating: