docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XrSpatialPersistenceContextResultEXTExtensions

    Extension methods for XrSpatialPersistenceContextResultEXT.

    Inheritance
    object
    XrSpatialPersistenceContextResultEXTExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.OpenXR.NativeTypes
    Assembly: Unity.XR.OpenXR.dll
    Syntax
    public static class XrSpatialPersistenceContextResultEXTExtensions

    Methods

    IsError(XrSpatialPersistenceContextResultEXT)

    Indicates whether the persistence context result represents an error code. Equivalent to !IsSuccess().

    Declaration
    public static bool IsError(this XrSpatialPersistenceContextResultEXT result)
    Parameters
    Type Name Description
    XrSpatialPersistenceContextResultEXT result

    The persistence context result.

    Returns
    Type Description
    bool

    true if the result represents an error code. Otherwise, false.

    IsSuccess(XrSpatialPersistenceContextResultEXT)

    Indicates whether the persistence context result represents a success code.

    Declaration
    public static bool IsSuccess(this XrSpatialPersistenceContextResultEXT result)
    Parameters
    Type Name Description
    XrSpatialPersistenceContextResultEXT result

    The persistence context result.

    Returns
    Type Description
    bool

    true if the result represents a success code. Otherwise, false.

    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)