docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XrCreateSpatialContextCompletionEXT

    The completion struct for OpenXRNativeApi.xrCreateSpatialContextCompleteEXT. 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 XrCreateSpatialContextCompletionEXT
    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 CreateSpatialContextCompletionEXT.

    Constructors

    XrCreateSpatialContextCompletionEXT(void*, XrResult, ulong)

    Construct an instance.

    Declaration
    public XrCreateSpatialContextCompletionEXT(void* next, XrResult futureResult, ulong spatialContext)
    Parameters
    Type Name Description
    void* next

    The next pointer.

    XrResult futureResult

    The future result.

    ulong spatialContext

    The spatial context.

    XrCreateSpatialContextCompletionEXT(XrResult, ulong)

    Construct an instance with a null next pointer.

    Declaration
    public XrCreateSpatialContextCompletionEXT(XrResult futureResult, ulong spatialContext)
    Parameters
    Type Name Description
    XrResult futureResult

    The future result.

    ulong spatialContext

    The spatial context.

    Properties

    defaultValue

    Get a default instance with an initialized type property.

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

    futureResult

    The result of the spatial context creation operation.

    Declaration
    public XrResult futureResult { readonly get; set; }
    Property Value
    Type Description
    XrResult
    Remarks

    Success codes:

    • Success
    • LossPending

    Failure codes:

    • RuntimeFailure
    • InstanceLost
    • SessionLost
    • OutOfMemory
    • LimitReached

    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*

    spatialContext

    The newly created spatial context, if futureResult.IsSuccess().

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

    If futureResult.IsSuccess(), the spatial context is valid within the lifecycle of the session or until you destroy it with xrDestroySpatialContextEXT(ulong), whichever comes first.

    type

    The XrStructureType of this struct: CreateSpatialContextCompletionEXT.

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

    See Also

    xrCreateSpatialContextCompleteEXT(ulong, ulong, out XrCreateSpatialContextCompletionEXT)
    xrCreateSpatialContextCompleteEXT(ulong, out XrCreateSpatialContextCompletionEXT)
    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)