v1.0.0
Latest
2022.3+
Interface IReadOnlyPlayer
A read only interface representing a player in the session.
Namespace: Unity.Services.Multiplayer
Syntax
public interface IReadOnlyPlayer
Properties
AllocationId
The allocation id
Declaration
string AllocationId { get; }
Property Value
Type | Description |
---|---|
System.String |
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
string Id { get; }
Property Value
Type | Description |
---|---|
System.String |
Joined
The time at which the member joined the Session.
Declaration
DateTime Joined { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
LastUpdated
The last time the metadata for this member was updated.
Declaration
DateTime LastUpdated { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
Properties
Custom game-specific properties that apply to an individual player (e.g. role
or skill
).
Declaration
IReadOnlyDictionary<string, PlayerProperty> Properties { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyDictionary<System.String, PlayerProperty> |