docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Player

    An object representing a single player.

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

    Constructors

    Player(string, object, List<QosResult>)

    An object representing a single player.

    Declaration
    public Player(string id, object customData = null, List<QosResult> qosResults = null)
    Parameters
    Type Name Description
    string id

    The unique ID of the player. Usually, the ID received as a result of authenticating a player.

    object customData

    A custom data object. Contains a dictionary of custom data to be used by the rules defined in a Match Definition.

    List<QosResult> qosResults

    A list of QosResult.

    Properties

    CustomData

    A custom data object. Contains a dictionary of custom data to be used by the rules defined in a Match Definition.

    Declaration
    public IDeserializable CustomData { get; }
    Property Value
    Type Description
    IDeserializable

    Id

    The unique ID of the player. Usually, the ID received as a result of authenticating a player.

    Declaration
    public string Id { get; }
    Property Value
    Type Description
    string

    QosResults

    A list of QosResult.

    Declaration
    public List<QosResult> QosResults { get; }
    Property Value
    Type Description
    List<QosResult>
    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)