docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

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

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

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