docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Player

    Information about a specific member creating, joining, or already in a Session.

    Inheritance
    object
    Player
    Implements
    IReadOnlyPlayer
    IPlayer
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Services.Multiplayer
    Assembly: Unity.Services.Multiplayer.dll
    Syntax
    public class Player : IReadOnlyPlayer, IPlayer

    Fields

    RemovedKeys

    Declaration
    public List<string> RemovedKeys
    Field Value
    Type Description
    List<string>

    Properties

    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.

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

    Joined

    The time at which the member joined the Session.

    Declaration
    public DateTime Joined { get; }
    Property Value
    Type Description
    DateTime

    LastUpdated

    The last time the metadata for this member was updated.

    Declaration
    public DateTime LastUpdated { get; }
    Property Value
    Type Description
    DateTime

    Properties

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

    Declaration
    public Dictionary<string, PlayerProperty> Properties { get; set; }
    Property Value
    Type Description
    Dictionary<string, PlayerProperty>

    Implements

    IReadOnlyPlayer
    IPlayer
    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)