Class XRParticipantSubsystemDescriptor
The descriptor of the XRParticipantSubsystem that shows which features are available on that XRSubsystem.
Inheritance
Implements
Inherited Members
Namespace: UnityEngine.XR.ARSubsystems
Assembly: Unity.XR.ARSubsystems.dll
Syntax
public sealed class XRParticipantSubsystemDescriptor : SubsystemDescriptorWithProvider<XRParticipantSubsystem, XRParticipantSubsystem.Provider>, ISubsystemDescriptor
Remarks
Use Register<T>(string, Capabilities) to register a subsystem with the global SubsystemManager
.
Properties
capabilities
The capabilities provided by this implementation.
Declaration
[Obsolete("XRParticipantSubsystemDescriptor.Capabilities has been deprecated in AR Foundation 6.0. Use XRParticipantSubsystemDescriptor.Cinfo instead of XRParticipantSubsystemDescriptor.Capabilities when registering a descriptor.", false)]
public XRParticipantSubsystemDescriptor.Capabilities capabilities { get; }
Property Value
Type | Description |
---|---|
XRParticipantSubsystemDescriptor.Capabilities |
Methods
Register(Cinfo)
Registers a subsystem descriptor with the SubsystemManager
.
Declaration
public static void Register(XRParticipantSubsystemDescriptor.Cinfo cinfo)
Parameters
Type | Name | Description |
---|---|---|
XRParticipantSubsystemDescriptor.Cinfo | cinfo | Parameters describing the XRParticipantSubsystem. |
Register<T>(string, Capabilities)
Register a provider implementation. This should only be used by subsystem implementors.
Declaration
[Obsolete("XRParticipantSubsystemDescriptor.Register<T>(string subsystemId, Capabilities capabilities) has been deprecated in 6.0. Instead use XRParticipantSubsystemDescriptor.Register(XRParticipantSubsystemDescriptor.Cinfo cinfo)", false)]
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, Capabilities)
Register a provider implementation and subsystem override. This should only be used by subsystem implementors.
Declaration
[Obsolete("XRParticipantSubsystemDescriptor.Register<TProvider, TSubsystemOverride>(string subsystemId, Capabilities capabilities) has been deprecated in 6.0. Instead use XRParticipantSubsystemDescriptor.Register(XRParticipantSubsystemDescriptor.Cinfo cinfo)", false)]
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. |