docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XRMarkerSubsystemDescriptor

    Describes the capabilities of an XRMarkerSubsystem implementation, including supported marker types.

    Inheritance
    object
    SubsystemDescriptorWithProvider
    SubsystemDescriptorWithProvider<XRMarkerSubsystem, XRMarkerSubsystem.Provider>
    XRMarkerSubsystemDescriptor
    Implements
    ISubsystemDescriptor
    Inherited Members
    SubsystemDescriptorWithProvider<XRMarkerSubsystem, XRMarkerSubsystem.Provider>.Create()
    SubsystemDescriptorWithProvider.id
    SubsystemDescriptorWithProvider.providerType
    SubsystemDescriptorWithProvider.subsystemTypeOverride
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    Implements

    ISubsystemDescriptor
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)