v1.1.4
Latest
2022.3+

Class Team

Team model

Inheritance
System.Object
Team
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Unity.Services.Matchmaker.Models
Syntax
[Preserve]
public class Team

Constructors

Team(String, String, List<String>)

Creates an instance of Team.

Declaration
[Preserve]
public Team(string teamName = null, string teamId = null, List<string> playerIds = null)
Parameters
TypeNameDescription
System.StringteamName

The name of the team. The team name should be the same as the team name defined in the rules of matchmaking.

System.StringteamId

The ID of the team.

System.Collections.Generic.List<System.String>playerIds

An array of player IDs that represent the players in a team. This ID must exist in the list of players of the Match Properties.

Properties

PlayerIds

An array of player IDs that represent the players in a team. This ID must exist in the list of players of the Match Properties.

Declaration
[Preserve]
public List<string> PlayerIds { get; }
Property Value
TypeDescription
System.Collections.Generic.List<System.String>

TeamId

The ID of the team.

Declaration
[Preserve]
public string TeamId { get; }
Property Value
TypeDescription
System.String

TeamName

The name of the team. The team name should be the same as the team name defined in the rules of matchmaking.

Declaration
[Preserve]
public string TeamName { get; }
Property Value
TypeDescription
System.String