XRSubsystemHelpers.GetAllRunningSubsystems<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.