Language
Edit

XRSubsystemHelpers Class

Definition

A helper class to provide easier access to XR subsystems.

public static class XRSubsystemHelpers
type XRSubsystemHelpers = class
Public Class XRSubsystemHelpers
Inheritance
XRSubsystemHelpers

Properties

Name Description
DictationSubsystem

The currently loaded and running dictation subsystem, if any.

DisplaySubsystem

The XR SDK display subsystem for the currently loaded XR plug-in.

HandsAggregator

The currently loaded and running hands aggregator, if any.

InputSubsystem

The XR SDK input subsystem for the currently loaded XR plug-in.

KeywordRecognitionSubsystem

The currently loaded and running keyword recognition subsystem, if any.

MeshSubsystem

The XR SDK mesh subsystem for the currently loaded XR plug-in.

Methods

Name Description
CheckTypes<SubsystemT,ProviderT>(String, Type, Type)

Validates the descriptor parameters against possible type errors that could arise at runtime. The base subsystem type and base provider type are passed as generic type params for validation.

ConstructCinfo<SubsystemT,CinfoT>()

Create and initializes an object of type CinfoT for the specified subsystem type.

GetAllRunningSubsystems<T>()

Get all running subsystems of type T. Note, this is internally cached, so the list is only valid immediately after invocation.

GetAllRunningSubsystemsNonAlloc<T>(List<T>)
Obsolete.

Get all running subsystems of type T.

GetAllSubsystems<T>()

Get all subsystems (not necessarily running) of type T. Note, this is internally cached, so the list is only valid immediately after invocation.

GetConfiguration<ConfigT,SubsystemT>()

Gets the loaded configuration of type ConfigT for the indicated subsystem type SubsystemT

GetFirstRunningSubsystem<T>()

Get the first active and running subsystem of type T.

GetFirstSubsystem<T>()

Get the first active subsystem of type T.

RetrieveMetadata(Type)

Retrieves metadata for a specified subsystem type. Used when registering a subsystem.

RetrieveMetadata<SubsystemT>()

Retrieves metadata for a specified subsystem type. Used when registering a subsystem.

Applies to