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