v1.0.0
Latest
2022.3+

Class UnityServicesExtensions

Unity services extensions

Inheritance
System.Object
UnityServicesExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Unity.Services.Core
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
TypeNameDescription
Unity.Services.Core.IUnityServicesunityServices

The core services instance

Returns
TypeDescription
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
TypeNameDescription
Unity.Services.Core.IUnityServicesunityServices

The core services instance

Returns
TypeDescription
IMatchmakerService

The matchmaker service instance

GetMultiplayerServerService(IUnityServices)

Retrieve the multiplayer server service from the core service registry

Declaration
public static IMultiplayerServerService GetMultiplayerServerService(this IUnityServices unityServices)
Parameters
TypeNameDescription
Unity.Services.Core.IUnityServicesunityServices

The core services instance

Returns
TypeDescription
IMultiplayerServerService

The multiplayer server service instance

GetMultiplayerService(IUnityServices)

Retrieve the multiplayer service from the core service registry

Declaration
public static IMultiplayerService GetMultiplayerService(this IUnityServices unityServices)
Parameters
TypeNameDescription
Unity.Services.Core.IUnityServicesunityServices

The core services instance

Returns
TypeDescription
IMultiplayerService

The multiplayer service instance

GetMultiplayService(IUnityServices)

Retrieve the multiplay service from the core service registry

Declaration
public static IMultiplayService GetMultiplayService(this IUnityServices unityServices)
Parameters
TypeNameDescription
Unity.Services.Core.IUnityServicesunityServices

The core services instance

Returns
TypeDescription
IMultiplayService

The multiplay service instance

GetRelayService(IUnityServices)

Retrieve the relay service from the core service registry

Declaration
public static IRelayService GetRelayService(this IUnityServices unityServices)
Parameters
TypeNameDescription
Unity.Services.Core.IUnityServicesunityServices

The core services instance

Returns
TypeDescription
IRelayService

The relay service instance