docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Player

    Information about a specific player creating, joining, or already in a lobby.

    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.Lobbies.Models
    Assembly: solution.dll
    Syntax
    [Preserve]
    public class Player

    Constructors

    Name Description
    Player(string, string, Dictionary<string, PlayerDataObject>, string, DateTime, DateTime, PlayerProfile)

    Information about a specific player creating, joining, or already in a lobby.

    Properties

    Name Description
    AllocationId

    The allocationId from the Relay service which associates this player in this lobby with a persistent connection. When a disconnect notification is received, this value is used to identify the associated player in a lobby to mark them as disconnected.

    ConnectionInfo

    Connection information for connecting to a relay with this player.

    Data

    Custom game-specific properties that apply to an individual player (e.g. role or skill).

    Id

    The unique identifier for the player. If not provided for a create or join request, it will be set to the ID of the caller.

    Joined

    The time at which the player joined the lobby.

    LastUpdated

    The last time the metadata for this player was updated.

    Profile

    Parameter profile of Player

    In This Article
    Back to top
    Copyright © 2023 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)