docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XrSpatialDiscoverySnapshotCreateInfoEXT

    Creation info for a discovery snapshot, used by xrCreateSpatialDiscoverySnapshotAsyncEXT(ulong, in XrSpatialDiscoverySnapshotCreateInfoEXT, out ulong). Provided by XR_EXT_spatial_entity.

    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 XrSpatialDiscoverySnapshotCreateInfoEXT
    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 SpatialDiscoverySnapshotCreateInfoEXT.

    Constructors

    XrSpatialDiscoverySnapshotCreateInfoEXT(uint, XrSpatialComponentTypeEXT*)

    Construct an instance with a null next pointer.

    Declaration
    public XrSpatialDiscoverySnapshotCreateInfoEXT(uint componentTypeCount, XrSpatialComponentTypeEXT* componentTypes)
    Parameters
    Type Name Description
    uint componentTypeCount

    The count of elements in componentTypes.

    XrSpatialComponentTypeEXT* componentTypes

    The pointer to an array of component types.

    XrSpatialDiscoverySnapshotCreateInfoEXT(void*, uint, XrSpatialComponentTypeEXT*)

    Construct an instance.

    Declaration
    public XrSpatialDiscoverySnapshotCreateInfoEXT(void* next, uint componentTypeCount, XrSpatialComponentTypeEXT* componentTypes)
    Parameters
    Type Name Description
    void* next

    The next pointer.

    uint componentTypeCount

    The count of elements in componentTypes.

    XrSpatialComponentTypeEXT* componentTypes

    The pointer to an array of component types.

    XrSpatialDiscoverySnapshotCreateInfoEXT(void*, NativeArray<XrSpatialComponentTypeEXT>)

    Construct an instance.

    Declaration
    public XrSpatialDiscoverySnapshotCreateInfoEXT(void* next, NativeArray<XrSpatialComponentTypeEXT> componentTypes)
    Parameters
    Type Name Description
    void* next

    The next pointer.

    NativeArray<XrSpatialComponentTypeEXT> componentTypes

    The array of component types.

    XrSpatialDiscoverySnapshotCreateInfoEXT(NativeArray<XrSpatialComponentTypeEXT>)

    Construct an instance with a null next pointer.

    Declaration
    public XrSpatialDiscoverySnapshotCreateInfoEXT(NativeArray<XrSpatialComponentTypeEXT> componentTypes)
    Parameters
    Type Name Description
    NativeArray<XrSpatialComponentTypeEXT> componentTypes

    The array of component types.

    Properties

    componentTypeCount

    The count of elements in the componentTypes array.

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

    componentTypes

    The pointer to an array of component types.

    Declaration
    public XrSpatialComponentTypeEXT* componentTypes { get; }
    Property Value
    Type Description
    XrSpatialComponentTypeEXT*

    next

    null or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.

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

    type

    The XrStructureType of this struct: SpatialDiscoverySnapshotCreateInfoEXT.

    Declaration
    public XrStructureType type { get; }
    Property Value
    Type Description
    XrStructureType
    In This Article
    Back to top
    Copyright © 2025 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)