Class UnityServicesExtensions
Unity services extensions
Inherited Members
Namespace: Unity.Services.Core
Assembly: Unity.Services.Multiplayer.dll
Syntax
public static class UnityServicesExtensions
Methods
GetLobbyService(IUnityServices)
Retrieve the lobby service from the core service registry
Declaration
public static ILobbyService GetLobbyService(this IUnityServices unityServices)
Parameters
Type | Name | Description |
---|---|---|
IUnityServices | unityServices | The core services instance |
Returns
Type | Description |
---|---|
ILobbyService | The lobby service instance |
GetMatchmakerService(IUnityServices)
Retrieve the matchmaker service from the core service registry
Declaration
public static IMatchmakerService GetMatchmakerService(this IUnityServices unityServices)
Parameters
Type | Name | Description |
---|---|---|
IUnityServices | unityServices | The core services instance |
Returns
Type | Description |
---|---|
IMatchmakerService | The matchmaker service instance |
GetMultiplayerService(IUnityServices)
Retrieve the multiplayer service from the core service registry
Declaration
public static IMultiplayerService GetMultiplayerService(this IUnityServices unityServices)
Parameters
Type | Name | Description |
---|---|---|
IUnityServices | unityServices | The core services instance |
Returns
Type | Description |
---|---|
IMultiplayerService | The multiplayer service instance |
GetRelayService(IUnityServices)
Retrieve the relay service from the core service registry
Declaration
public static IRelayService GetRelayService(this IUnityServices unityServices)
Parameters
Type | Name | Description |
---|---|---|
IUnityServices | unityServices | The core services instance |
Returns
Type | Description |
---|---|
IRelayService | The relay service instance |