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 |
---|---|---|
IUnity |
unityServices | The core services instance |
Returns
Type | Description |
---|---|
ILobby |
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 |
---|---|---|
IUnity |
unityServices | The core services instance |
Returns
Type | Description |
---|---|
IMatchmaker |
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 |
---|---|---|
IUnity |
unityServices | The core services instance |
Returns
Type | Description |
---|---|
IMultiplayer |
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 |
---|---|---|
IUnity |
unityServices | The core services instance |
Returns
Type | Description |
---|---|
IRelay |
The relay service instance |