docs.unity3d.com
    Show / Hide Table of Contents

    Class Player

    An object representing a single player.

    Inheritance
    Object
    Player
    Namespace: Unity.Services.Matchmaker.Models
    Syntax
    [Preserve]
    public class Player

    Constructors

    Player(String, Object, List<QosResult>)

    An object representing a single player.

    Declaration
    [Preserve]
    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
    [Preserve]
    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
    [Preserve]
    public string Id { get; }
    Property Value
    Type Description
    String

    QosResults

    A list of QosResult.

    Declaration
    [Preserve]
    public List<QosResult> QosResults { get; }
    Property Value
    Type Description
    List<QosResult>
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023