Struct XrSpatialImageSizeEXT
Optional next-chain struct that informs the runtime of an image's physical width in meters.
Chain to XrSpatialReferenceImageEXT.next for per-image size or
to XrSpatialImageTrackingDatabaseCreateInfoEXT.next
for a database-wide default. Per-image chaining takes precedence.
Provided by XR_EXT_spatial_image_tracking.
Inherited Members
Namespace: UnityEngine.XR.OpenXR.NativeTypes
Assembly: Unity.XR.OpenXR.dll
Syntax
public readonly struct XrSpatialImageSizeEXT
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 SpatialImageSizeEXT.
Constructors
XrSpatialImageSizeEXT(float)
Construct an instance with a null next pointer.
Declaration
public XrSpatialImageSizeEXT(float physicalWidth)
Parameters
| Type | Name | Description |
|---|---|---|
| float | physicalWidth | The physical width in meters to set. |
XrSpatialImageSizeEXT(void*, float)
Construct an instance.
Declaration
public XrSpatialImageSizeEXT(void* next, float physicalWidth)
Parameters
| Type | Name | Description |
|---|---|---|
| void* | next |
|
| float | physicalWidth | The physical width in meters to set. |
Properties
next
null or a pointer to the next structure in a structure chain.
Declaration
public void* next { get; }
Property Value
| Type | Description |
|---|---|
| void* |
physicalWidth
The physical width in meters to set. The height is implied by the aspect ratio of the reference image's
width and height.
Declaration
public float physicalWidth { get; }
Property Value
| Type | Description |
|---|---|
| float |
type
The XrStructureType of this struct: SpatialImageSizeEXT.
Declaration
public XrStructureType type { get; }
Property Value
| Type | Description |
|---|---|
| XrStructureType |