XRSubsystemHelpers.GetFirstSubsystem<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 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
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.