docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XrSpatialImage2DDataEXT

    Per-entity data returned for the Image 2D component when querying spatial component data. Provided by XR_EXT_spatial_image_tracking.

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

    Use imageTrackingDatabase to identify which previously created database contains the reference image of this structure. For that database, use referenceImageIndex to identify the reference image by matching it to the input order of the spatialReferenceImages array.

    Constructors

    XrSpatialImage2DDataEXT(ulong, uint)

    Construct an instance.

    Declaration
    public XrSpatialImage2DDataEXT(ulong imageTrackingDatabase, uint referenceImageIndex)
    Parameters
    Type Name Description
    ulong imageTrackingDatabase

    The database that detected or tracked the image. Must be a valid, non-null database handle.

    uint referenceImageIndex

    The index that maps into the spatialReferenceImages array of input reference images that imageTrackingDatabase was created with.

    Properties

    imageTrackingDatabase

    The database that detected or tracked the image.

    Declaration
    public ulong imageTrackingDatabase { get; }
    Property Value
    Type Description
    ulong

    referenceImageIndex

    The index that maps into the spatialReferenceImages array of input reference images that imageTrackingDatabase was created with.

    Declaration
    public uint referenceImageIndex { get; }
    Property Value
    Type Description
    uint
    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)