docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Team

    Team model

    Inheritance
    object
    Team
    Namespace: Unity.Services.Matchmaker.Models
    Assembly: solution.dll
    Syntax
    public class Team

    Constructors

    Team(string, string, List<string>)

    Creates an instance of Team.

    Declaration
    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
    public List<string> PlayerIds { get; }
    Property Value
    Type Description
    List<string>

    TeamId

    The ID of the team.

    Declaration
    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
    public string TeamName { get; }
    Property Value
    Type Description
    string
    In This Article
    Back to top
    Copyright © 2025 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)