docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XRLoadAnchorResult

    The result of an operation to load an anchor from persistent storage.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.ARSubsystems
    Assembly: Unity.XR.ARSubsystems.dll
    Syntax
    public struct XRLoadAnchorResult

    Constructors

    XRLoadAnchorResult(XRResultStatus, SerializableGuid, XRAnchor)

    Construct an instance.

    Declaration
    public XRLoadAnchorResult(XRResultStatus resultStatus, SerializableGuid savedAnchorGuid, XRAnchor xrAnchor)
    Parameters
    Type Name Description
    XRResultStatus resultStatus

    The status of the load operation.

    SerializableGuid savedAnchorGuid

    The persistent anchor GUID of the anchor requested to be loaded.

    XRAnchor xrAnchor

    If resultStatus.IsSuccess(), the anchor that was loaded. Otherwise, XRAnchor.defaultValue.

    Fields

    resultStatus

    The status of the completed load operation. If resultStatus.IsError(), don't read the xrAnchor value.

    Declaration
    public XRResultStatus resultStatus
    Field Value
    Type Description
    XRResultStatus

    savedAnchorGuid

    The persistent anchor GUID of the anchor requested to be loaded.

    Declaration
    public SerializableGuid savedAnchorGuid
    Field Value
    Type Description
    SerializableGuid

    xrAnchor

    If resultStatus.IsSuccess(), the anchor that was loaded. Otherwise, XRAnchor.defaultValue.

    Declaration
    public XRAnchor xrAnchor
    Field Value
    Type Description
    XRAnchor

    Properties

    defaultValue

    Get a default instance, initialized with StatusCode.UnknownError.

    Declaration
    public static XRLoadAnchorResult defaultValue { get; }
    Property Value
    Type Description
    XRLoadAnchorResult
    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)