docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Player

    An object representing a single player.

    Inheritance
    object
    Player
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Services.Apis.Matchmaker
    Assembly: solution.dll
    Syntax
    [Preserve]
    public class Player

    Constructors

    Player(string, object, List<QosResult>)

    Initializes a new instance of the Player class.

    Declaration
    [Preserve]
    public Player(string id = null, 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. (required).

    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 object CustomData { get; set; }
    Property Value
    Type Description
    object

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

    Id

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

    Declaration
    [Preserve]
    public string Id { get; set; }
    Property Value
    Type Description
    string

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

    QosResults

    A list of QosResult.

    Declaration
    [Preserve]
    public List<QosResult> QosResults { get; set; }
    Property Value
    Type Description
    List<QosResult>

    A list of QosResult.

    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)