Class XRParticipantSubsystemDescriptor
The descriptor of the XRParticipantSubsystem that shows which features are available on that XRSubsystem.
Inheritance
Inherited Members
Namespace: UnityEngine.XR.ARSubsystems
Syntax
public sealed class XRParticipantSubsystemDescriptor : SubsystemDescriptorWithProvider<XRParticipantSubsystem, XRParticipantSubsystem.Provider>, ISubsystemDescriptor
Remarks
Use Register<T>(String, XRParticipantSubsystemDescriptor.Capabilities) to register a subsystem with the global SubsystemManager
.
Properties
capabilities
The capabilities provided by this implementation.
Declaration
public XRParticipantSubsystemDescriptor.Capabilities capabilities { get; }
Property Value
Type | Description |
---|---|
XRParticipantSubsystemDescriptor.Capabilities |
Methods
Register<T>(String, XRParticipantSubsystemDescriptor.Capabilities)
Register a provider implementation. This should only be used by subsystem implementors.
Declaration
public static void Register<T>(string subsystemId, XRParticipantSubsystemDescriptor.Capabilities capabilities)
where T : XRParticipantSubsystem.Provider
Parameters
Type | Name | Description |
---|---|---|
String | subsystemId | The name of the specific subsystem implementation. |
XRParticipantSubsystemDescriptor.Capabilities | capabilities | The XRParticipantSubsystemDescriptor.Capabilities of the specific subsystem implementation. |
Type Parameters
Name | Description |
---|---|
T | The concrete type derived from XRParticipantSubsystem being registered. |
Register<TProvider, TSubsystemOverride>(String, XRParticipantSubsystemDescriptor.Capabilities)
Register a provider implementation and subsystem override. This should only be used by subsystem implementors.
Declaration
public static void Register<TProvider, TSubsystemOverride>(string subsystemId, XRParticipantSubsystemDescriptor.Capabilities capabilities)
where TProvider : XRParticipantSubsystem.Provider where TSubsystemOverride : XRParticipantSubsystem
Parameters
Type | Name | Description |
---|---|---|
String | subsystemId | The name of the specific subsystem implementation. |
XRParticipantSubsystemDescriptor.Capabilities | capabilities | The XRParticipantSubsystemDescriptor.Capabilities of the specific subsystem implementation. |
Type Parameters
Name | Description |
---|---|
TProvider | The concrete type of the provider being registered. |
TSubsystemOverride | The concrete type of the subsystem being registered. |