Interface IMultiplayerServerService
Facade for session browsing, session management and matchmaking.
Namespace: Unity.Services.Multiplayer
Assembly: solution.dll
Syntax
public interface IMultiplayerServerService
Methods
CreateSessionAsync(SessionOptions)
Creates a server session.
Declaration
Task<IServerSession> CreateSessionAsync(SessionOptions sessionOptions)
Parameters
| Type | Name | Description |
|---|---|---|
| SessionOptions | sessionOptions | The options for the resulting session |
Returns
| Type | Description |
|---|---|
| Task<IServerSession> | The created server session |
Exceptions
| Type | Condition |
|---|---|
| SessionException | Provides a specific session error type and error message. |