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
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 |
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 |