Method Register
Register<T>(string, Capabilities)
Registers an implementation of the XRObjectTrackingSubsystem.
Declaration
public static void Register<T>(string id, XRObjectTrackingSubsystemDescriptor.Capabilities capabilities) where T : XRObjectTrackingSubsystem.Provider
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | A unique string identifying the subsystem implementation. |
| XRObjectTrackingSubsystemDescriptor.Capabilities | capabilities | Describes the capabilities of the implementation. |
Type Parameters
| Name | Description |
|---|---|
| T | The concrete type of the subsystem being registered. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if |
Register<TProvider, TSubsystemOverride>(string, Capabilities)
Registers a new implementation of the XRObjectTrackingSubsystem.
Allows overriding a derived type of XRObjectTrackingSubsystem.
Declaration
public static void Register<TProvider, TSubsystemOverride>(string id, XRObjectTrackingSubsystemDescriptor.Capabilities capabilities) where TProvider : XRObjectTrackingSubsystem.Provider where TSubsystemOverride : XRObjectTrackingSubsystem
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | A unique string identifying the subsystem implementation. |
| XRObjectTrackingSubsystemDescriptor.Capabilities | capabilities | Describes the capabilities of the implementation. |
Type Parameters
| Name | Description |
|---|---|
| TProvider | The concrete type of the provider being registered. |
| TSubsystemOverride | The concrete type of the subsystem being registered. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if |