Interface ISessionInfo
ISessionInfo represents information about a session.
Namespace: Unity.Services.Multiplayer
Assembly: Unity.Services.Multiplayer.dll
Syntax
public interface ISessionInfo
Properties
AvailableSlots
Available slots in the session
Declaration
int AvailableSlots { get; }
Property Value
Type | Description |
---|---|
int |
Created
The date and time the session was created
Declaration
DateTime Created { get; }
Property Value
Type | Description |
---|---|
DateTime |
HasPassword
True if the session has a password, false otherwise
Declaration
bool HasPassword { get; }
Property Value
Type | Description |
---|---|
bool |
HostId
The session host ID
Declaration
string HostId { get; }
Property Value
Type | Description |
---|---|
string |
Id
The session ID
Declaration
string Id { get; }
Property Value
Type | Description |
---|---|
string |
IsLocked
True if the session is Locked (eg. does not allow more players to join), false otherwise
Declaration
bool IsLocked { get; }
Property Value
Type | Description |
---|---|
bool |
LastUpdated
The date and time the session was updated last
Declaration
DateTime LastUpdated { get; }
Property Value
Type | Description |
---|---|
DateTime |
MaxPlayers
The maximum number of players allowed to be part of the session
Declaration
int MaxPlayers { get; }
Property Value
Type | Description |
---|---|
int |
Name
The session name
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
string |
Upid
The Unity project ID
Declaration
string Upid { get; }
Property Value
Type | Description |
---|---|
string |