docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XrSpatialImageStaticOptimizationEXT

    Optional next-chain struct that tells the runtime an image (or database of images) is not expected to move. Chain to XrSpatialReferenceImageEXT.next for per-image optimization or to XrSpatialImageTrackingDatabaseCreateInfoEXT.next for database-wide optimization. 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 XrSpatialImageStaticOptimizationEXT
    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 SpatialImageStaticOptimizationEXT.

    Constructors

    XrSpatialImageStaticOptimizationEXT(bool)

    Construct an instance with a null next pointer.

    Declaration
    public XrSpatialImageStaticOptimizationEXT(bool optimizeForStaticImage)
    Parameters
    Type Name Description
    bool optimizeForStaticImage

    true if images do not move.

    XrSpatialImageStaticOptimizationEXT(void*, bool)

    Construct an instance.

    Declaration
    public XrSpatialImageStaticOptimizationEXT(void* next, bool optimizeForStaticImage)
    Parameters
    Type Name Description
    void* next

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

    bool optimizeForStaticImage

    true if images do not move.

    Properties

    next

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

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

    optimizeForStaticImage

    Indicates whether images move or not. A value of 1 indicates that images do not move.

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

    type

    The XrStructureType of this struct: SpatialImageStaticOptimizationEXT.

    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)