Language
Edit

XRSubsystemHelpers.GetAllSubsystems<T> Method

Definition

Get all subsystems (not necessarily running) of type T. Note, this is internally cached, so the list is only valid immediately after invocation.

public static System.Collections.Generic.List<T> GetAllSubsystems<T>() where T : UnityEngine.ISubsystem;
static member GetAllSubsystems : unit -> System.Collections.Generic.List<'T (requires 'T :> UnityEngine.ISubsystem)> (requires 'T :> UnityEngine.ISubsystem)
Public Shared Function GetAllSubsystems(Of T As ISubsystem) () As List(Of T)

Type Parameters

T

Returns

List<T>

Remarks

This method allocates on the first invocation with a new, unique type T. Subsequent invocations with the same type T will no longer allocate.

Applies to