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
Type | Name | Description |
---|---|---|
Unity.Services.Core.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 |
---|---|---|
Unity.Services.Core.IUnityServices | unityServices | The core services instance |
Returns
Type | Description |
---|---|
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
Type | Name | Description |
---|---|---|
Unity.Services.Core.IUnityServices | unityServices | The core services instance |
Returns
Type | Description |
---|---|
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
Type | Name | Description |
---|---|---|
Unity.Services.Core.IUnityServices | unityServices | The core services instance |
Returns
Type | Description |
---|---|
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
Type | Name | Description |
---|---|---|
Unity.Services.Core.IUnityServices | unityServices | The core services instance |
Returns
Type | Description |
---|---|
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
Type | Name | Description |
---|---|---|
Unity.Services.Core.IUnityServices | unityServices | The core services instance |
Returns
Type | Description |
---|---|
IRelayService | The relay service instance |