Class XRMarkerSubsystemDescriptor
Describes the capabilities of an XRMarkerSubsystem implementation, including supported marker types.
Inheritance
Implements
Inherited Members
Namespace: UnityEngine.XR.ARSubsystems
Assembly: Unity.XR.ARSubsystems.dll
Syntax
public class XRMarkerSubsystemDescriptor : SubsystemDescriptorWithProvider<XRMarkerSubsystem, XRMarkerSubsystem.Provider>, ISubsystemDescriptor
Remarks
This descriptor is used by Unity's subsystem infrastructure to discover and instantiate subsystems at runtime. Providers should populate the supported marker types for their implementation.
Properties
supportedMarkerTypes
Attempts to get a list of marker types supported by this subsystem implementation.
Declaration
public Result<ReadOnlyListSpan<XRMarkerType>> supportedMarkerTypes { get; }
Property Value
Type | Description |
---|---|
Result<ReadOnlyListSpan<XRMarkerType>> |
Remarks
The list indicates which marker families (such as QR codes, MicroQR codes ArUco tags, or AprilTag) can be detected by this subsystem. Use this for capability checks and feature gating.
This property returns a Result
so you must check if the
operation was successful before accessing the value with Result.status.IsSuccess
. If successful,
the Result
contains a ReadOnlyListSpan<T> of the supported marker types.
Methods
Register(Cinfo)
Creates a new subsystem descriptor instance and registers it with the SubsystemManager.
Declaration
public static void Register(XRMarkerSubsystemDescriptor.Cinfo cinfo)
Parameters
Type | Name | Description |
---|---|---|
XRMarkerSubsystemDescriptor.Cinfo | cinfo | Construction info for the descriptor. |