docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Team

    Team model

    Inheritance
    object
    Team
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Services.Matchmaker.Models
    Assembly: Unity.Services.Multiplayer.dll
    Syntax
    [Preserve]
    [DataContract(Name = "Team")]
    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
    Type Name Description
    string teamName

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

    string teamId

    The ID of the team.

    List<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]
    [DataMember(Name = "playerIds", EmitDefaultValue = false)]
    public List<string> PlayerIds { get; }
    Property Value
    Type Description
    List<string>

    TeamId

    The ID of the team.

    Declaration
    [Preserve]
    [DataMember(Name = "teamId", EmitDefaultValue = false)]
    public string TeamId { get; }
    Property Value
    Type Description
    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]
    [DataMember(Name = "teamName", EmitDefaultValue = false)]
    public string TeamName { get; }
    Property Value
    Type Description
    string
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)