docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XrCreateSpatialDiscoverySnapshotCompletionEXT

    The completion struct for OpenXRNativeApi.xrCreateSpatialDiscoverySnapshotCompleteEXT. 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 struct XrCreateSpatialDiscoverySnapshotCompletionEXT
    Remarks
    Warning

    Don't initialize this struct with the default parameterless constructor. Use either defaultValue or a constructor with parameters to ensure that type is correctly initialized to CreateSpatialDiscoverySnapshotCompletionEXT.

    Constructors

    XrCreateSpatialDiscoverySnapshotCompletionEXT(void*, XrResult, ulong)

    Construct an instance.

    Declaration
    public XrCreateSpatialDiscoverySnapshotCompletionEXT(void* next, XrResult futureResult, ulong snapshot)
    Parameters
    Type Name Description
    void* next

    The next pointer.

    XrResult futureResult

    The future result.

    ulong snapshot

    The snapshot.

    XrCreateSpatialDiscoverySnapshotCompletionEXT(XrResult, ulong)

    Construct an instance with a null next pointer.

    Declaration
    public XrCreateSpatialDiscoverySnapshotCompletionEXT(XrResult futureResult, ulong snapshot)
    Parameters
    Type Name Description
    XrResult futureResult

    The future result.

    ulong snapshot

    The snapshot.

    Properties

    defaultValue

    Get a default instance with an initialized type property.

    Declaration
    public static XrCreateSpatialDiscoverySnapshotCompletionEXT defaultValue { get; }
    Property Value
    Type Description
    XrCreateSpatialDiscoverySnapshotCompletionEXT

    futureResult

    The result of the spatial discovery snapshot creation operation.

    Success codes:

    • Success
    • LossPending

    Failure codes:

    • RuntimeFailure
    • InstanceLost
    • SessionLost
    • OutOfMemory
    • LimitReached
    Declaration
    public XrResult futureResult { readonly get; set; }
    Property Value
    Type Description
    XrResult

    next

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

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

    snapshot

    The newly created spatial discovery snapshot, if futureResult.IsSuccess().

    Declaration
    public ulong snapshot { readonly get; set; }
    Property Value
    Type Description
    ulong

    type

    The XrStructureType of this struct: CreateSpatialDiscoverySnapshotCompletionEXT.

    Declaration
    public readonly XrStructureType type { get; }
    Property Value
    Type Description
    XrStructureType

    See Also

    xrCreateSpatialDiscoverySnapshotCompleteEXT(ulong, in XrCreateSpatialDiscoverySnapshotCompletionInfoEXT, out XrCreateSpatialDiscoverySnapshotCompletionEXT)
    xrCreateSpatialDiscoverySnapshotCompleteEXT(ulong, ulong, out XrCreateSpatialDiscoverySnapshotCompletionEXT)
    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)