v1.0.0
Latest
2022.3+

Interface ISessionInfo

ISessionInfo represents information about a session.

Namespace: Unity.Services.Multiplayer
Syntax
public interface ISessionInfo

Properties

AvailableSlots

Available slots in the session

Declaration
int AvailableSlots { get; }
Property Value
TypeDescription
System.Int32

Created

The date and time the session was created

Declaration
DateTime Created { get; }
Property Value
TypeDescription
System.DateTime

HasPassword

True if the session has a password, false otherwise

Declaration
bool HasPassword { get; }
Property Value
TypeDescription
System.Boolean

HostId

The session host ID

Declaration
string HostId { get; }
Property Value
TypeDescription
System.String

Id

The session ID

Declaration
string Id { get; }
Property Value
TypeDescription
System.String

IsLocked

True if the session is Locked (eg. does not allow more players to join), false otherwise

Declaration
bool IsLocked { get; }
Property Value
TypeDescription
System.Boolean

LastUpdated

The date and time the session was updated last

Declaration
DateTime LastUpdated { get; }
Property Value
TypeDescription
System.DateTime

MaxPlayers

The maximum number of players allowed to be part of the session

Declaration
int MaxPlayers { get; }
Property Value
TypeDescription
System.Int32

Name

The session name

Declaration
string Name { get; }
Property Value
TypeDescription
System.String

Upid

The Unity project ID

Declaration
string Upid { get; }
Property Value
TypeDescription
System.String