docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XrSpatialCapabilityConfigurationImageTrackingEXT

    Capability configuration struct for the image tracking capability. Provided by XR_EXT_spatial_image_tracking.

    Implements
    ISpatialCapabilityConfiguration
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.OpenXR.NativeTypes
    Assembly: Unity.XR.OpenXR.dll
    Syntax
    public readonly struct XrSpatialCapabilityConfigurationImageTrackingEXT : ISpatialCapabilityConfiguration
    Remarks
    Warning

    Don't initialize this struct with the default parameterless constructor. Use a constructor with parameters to ensure that type is correctly initialized to SpatialCapabilityConfigurationImageTrackingEXT.

    Constructors

    XrSpatialCapabilityConfigurationImageTrackingEXT(uint, XrSpatialComponentTypeEXT*, uint, ulong*)

    Construct an instance with a null next pointer.

    Declaration
    public XrSpatialCapabilityConfigurationImageTrackingEXT(uint enabledComponentCount, XrSpatialComponentTypeEXT* enabledComponents, uint imageTrackingDatabaseCount, ulong* imageTrackingDatabases)
    Parameters
    Type Name Description
    uint enabledComponentCount

    The number of elements in enabledComponents. Must be greater than 0.

    XrSpatialComponentTypeEXT* enabledComponents

    Pointer to an array of XrSpatialComponentTypeEXT that specifies the components to enable for this capability. Must be non-null.

    uint imageTrackingDatabaseCount

    The number of elements in imageTrackingDatabases. Must be greater than 0.

    ulong* imageTrackingDatabases

    Pointer to an array of XrSpatialImageTrackingDatabaseEXT handles that specifies the image tracking databases to enable for the spatial context. Must be non-null.

    XrSpatialCapabilityConfigurationImageTrackingEXT(void*, uint, XrSpatialComponentTypeEXT*, uint, ulong*)

    Construct an instance.

    Declaration
    public XrSpatialCapabilityConfigurationImageTrackingEXT(void* next, uint enabledComponentCount, XrSpatialComponentTypeEXT* enabledComponents, uint imageTrackingDatabaseCount, ulong* imageTrackingDatabases)
    Parameters
    Type Name Description
    void* next

    null or a pointer to the next structure in a structure chain.

    uint enabledComponentCount

    The number of elements in enabledComponents. Must be greater than 0.

    XrSpatialComponentTypeEXT* enabledComponents

    Pointer to an array of XrSpatialComponentTypeEXT that specifies the components to enable for this capability. Must be non-null.

    uint imageTrackingDatabaseCount

    The number of elements in imageTrackingDatabases. Must be greater than 0.

    ulong* imageTrackingDatabases

    Pointer to an array of XrSpatialImageTrackingDatabaseEXT handles that specifies the image tracking databases to enable for the spatial context. Must be non-null.

    XrSpatialCapabilityConfigurationImageTrackingEXT(void*, NativeArray<XrSpatialComponentTypeEXT>, NativeArray<ulong>)

    Construct an instance from native arrays.

    Declaration
    public XrSpatialCapabilityConfigurationImageTrackingEXT(void* next, NativeArray<XrSpatialComponentTypeEXT> enabledComponents, NativeArray<ulong> imageTrackingDatabases)
    Parameters
    Type Name Description
    void* next

    null or a pointer to the next structure in a structure chain.

    NativeArray<XrSpatialComponentTypeEXT> enabledComponents

    Native array of component types to enable for this capability. Must be non-empty.

    NativeArray<ulong> imageTrackingDatabases

    Native array of image tracking database handles. Must be non-empty.

    XrSpatialCapabilityConfigurationImageTrackingEXT(void*, ReadOnly, ReadOnly)

    Construct an instance from read-only native arrays.

    Declaration
    public XrSpatialCapabilityConfigurationImageTrackingEXT(void* next, NativeArray<XrSpatialComponentTypeEXT>.ReadOnly enabledComponents, NativeArray<ulong>.ReadOnly imageTrackingDatabases)
    Parameters
    Type Name Description
    void* next

    null or a pointer to the next structure in a structure chain.

    NativeArray<XrSpatialComponentTypeEXT>.ReadOnly enabledComponents

    Read-only native array of component types to enable for this capability. Must be non-empty.

    NativeArray<ulong>.ReadOnly imageTrackingDatabases

    Read-only native array of image tracking database handles. Must be non-empty.

    XrSpatialCapabilityConfigurationImageTrackingEXT(NativeArray<XrSpatialComponentTypeEXT>, NativeArray<ulong>)

    Construct an instance with a null next pointer from native arrays.

    Declaration
    public XrSpatialCapabilityConfigurationImageTrackingEXT(NativeArray<XrSpatialComponentTypeEXT> enabledComponents, NativeArray<ulong> imageTrackingDatabases)
    Parameters
    Type Name Description
    NativeArray<XrSpatialComponentTypeEXT> enabledComponents

    Native array of component types to enable for this capability. Must be non-empty.

    NativeArray<ulong> imageTrackingDatabases

    Native array of image tracking database handles. Must be non-empty.

    XrSpatialCapabilityConfigurationImageTrackingEXT(ReadOnly, ReadOnly)

    Construct an instance with a null next pointer from read-only native arrays.

    Declaration
    public XrSpatialCapabilityConfigurationImageTrackingEXT(NativeArray<XrSpatialComponentTypeEXT>.ReadOnly enabledComponents, NativeArray<ulong>.ReadOnly imageTrackingDatabases)
    Parameters
    Type Name Description
    NativeArray<XrSpatialComponentTypeEXT>.ReadOnly enabledComponents

    Read-only native array of component types to enable for this capability. Must be non-empty.

    NativeArray<ulong>.ReadOnly imageTrackingDatabases

    Read-only native array of image tracking database handles. Must be non-empty.

    Properties

    capability

    An XrSpatialCapabilityEXT and must be ImageTracking.

    Declaration
    public XrSpatialCapabilityEXT capability { get; }
    Property Value
    Type Description
    XrSpatialCapabilityEXT

    enabledComponentCount

    The number of elements in enabledComponents. Must be greater than 0.

    Declaration
    public uint enabledComponentCount { get; }
    Property Value
    Type Description
    uint

    enabledComponents

    Pointer to an array of XrSpatialComponentTypeEXT that specifies the components to enable for this capability. Must be non-null.

    Declaration
    public XrSpatialComponentTypeEXT* enabledComponents { get; }
    Property Value
    Type Description
    XrSpatialComponentTypeEXT*

    imageTrackingDatabaseCount

    The number of elements in imageTrackingDatabases. Must be greater than 0.

    Declaration
    public uint imageTrackingDatabaseCount { get; }
    Property Value
    Type Description
    uint

    imageTrackingDatabases

    Pointer to an array of XrSpatialImageTrackingDatabaseEXT handles that specifies the image tracking databases to enable for the spatial context. Must be non-null.

    Declaration
    public ulong* imageTrackingDatabases { get; }
    Property Value
    Type Description
    ulong*

    next

    null or a pointer to the next structure in a structure chain.

    Declaration
    public void* next { get; }
    Property Value
    Type Description
    void*

    type

    The XrStructureType of this struct: SpatialCapabilityConfigurationImageTrackingEXT.

    Declaration
    public XrStructureType type { get; }
    Property Value
    Type Description
    XrStructureType

    Methods

    ToString()

    Get a string suitable for debugging purposes.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    The string.

    Overrides
    ValueType.ToString()

    Implements

    ISpatialCapabilityConfiguration
    In This Article
    Back to top
    Copyright © 2026 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)