BaseServiceManager.GetServices<T>(String) Method

Definition

Gets the collection of the registered service instances matching the requested type.

C#
public System.Collections.Generic.IReadOnlyList<T> GetServices<T> (string name = default) where T : Microsoft.MixedReality.Toolkit.IMixedRealityService;

Type Parameters

T

The interface type of the service (ex: IMixedRealityBoundarySystem).

Parameters

name
String

Friendly name of the service.

Returns

Read-only collection of the service instances, as the requested type.

Implements

Applies to

Product Versions
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0