Language
Edit

XRSubsystemHelpers.GetFirstRunningSubsystem<T> Method

Definition

Get the first active and running subsystem of type T.

public static T GetFirstRunningSubsystem<T>() where T : UnityEngine.ISubsystem;
static member GetFirstRunningSubsystem : unit -> 'T (requires 'T :> UnityEngine.ISubsystem)
Public Shared Function GetFirstRunningSubsystem(Of T As ISubsystem) () As T

Type Parameters

T

Returns

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