Class XRAnchorSubsystemDescriptor
Indicates the capabilities supported by a provider of the XRAnchorSubsystem. Provider implementations must derive from XRAnchorSubsystem.Provider and may override virtual class members.
Inheritance
Implements
Inherited Members
Namespace: UnityEngine.XR.ARSubsystems
Assembly: solution.dll
Syntax
public class XRAnchorSubsystemDescriptor : SubsystemDescriptorWithProvider<XRAnchorSubsystem, XRAnchorSubsystem.Provider>, ISubsystemDescriptor
Properties
supportsSynchronousAdd
Indicates whether the provider implementation supports synchronously adding anchors via
XRAnchorSubsystem.TryAddAnchor.
If false, TryAddAnchor must always return false. In this case, use
XRAnchorSubsystem.TryAddAnchorAsync instead.
Declaration
public bool supportsSynchronousAdd { get; }
Property Value
| Type | Description |
|---|---|
| bool |
supportsTrackableAttachments
Indicates whether the provider implementation supports attachments (that is, the ability to attach an anchor to a trackable). If false, XRAnchorSubsystem.TryAttachAnchor must always return false.
Declaration
public bool supportsTrackableAttachments { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
Create(Cinfo)
Creates a new subsystem descriptor instance and registers it with the SubsystemManager.
Declaration
[Obsolete("Create(Cinfo) has been deprecated in AR Foundation version 6.0. Use Register(Cinfo) instead (UnityUpgradable) -> Register(*)", false)]
public static void Create(XRAnchorSubsystemDescriptor.Cinfo cinfo)
Parameters
| Type | Name | Description |
|---|---|---|
| XRAnchorSubsystemDescriptor.Cinfo | cinfo | Construction info for the descriptor. |
Register(Cinfo)
Creates a new subsystem descriptor instance and registers it with the SubsystemManager.
Declaration
public static void Register(XRAnchorSubsystemDescriptor.Cinfo cinfo)
Parameters
| Type | Name | Description |
|---|---|---|
| XRAnchorSubsystemDescriptor.Cinfo | cinfo | Construction info for the descriptor. |