Class XRParticipantSubsystemDescriptor
The descriptor of the XRParticipant
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 |
---|---|
XRParticipant |
Methods
Register(Cinfo)
Registers a subsystem descriptor with the SubsystemManager
.
Declaration
public static void Register(XRParticipantSubsystemDescriptor.Cinfo cinfo)
Parameters
Type | Name | Description |
---|---|---|
XRParticipant |
cinfo | Parameters describing the XRParticipant |
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. |
XRParticipant |
capabilities | The XRParticipant |
Type Parameters
Name | Description |
---|---|
T | The concrete type derived from XRParticipant |
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. |
XRParticipant |
capabilities | The XRParticipant |
Type Parameters
Name | Description |
---|---|
TProvider | The concrete type of the provider being registered. |
TSubsystemOverride | The concrete type of the subsystem being registered. |