Language
Edit

XRSubsystemHelpers.GetFirstSubsystem<T> Method

Definition

Get the first active subsystem of type T.

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