Language
Edit

XRSubsystemHelpers.GetAllRunningSubsystems<T> Method

Definition

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

public static System.Collections.Generic.List<T> GetAllRunningSubsystems<T>() where T : UnityEngine.ISubsystem;
static member GetAllRunningSubsystems : unit -> System.Collections.Generic.List<'T (requires 'T :> UnityEngine.ISubsystem)> (requires 'T :> UnityEngine.ISubsystem)
Public Shared Function GetAllRunningSubsystems(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