docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XRSaveAnchorResult

    The result of an operation to save an anchor to 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 XRSaveAnchorResult

    Constructors

    XRSaveAnchorResult(XRResultStatus, TrackableId, SerializableGuid)

    Construct an instance.

    Declaration
    public XRSaveAnchorResult(XRResultStatus resultStatus, TrackableId trackableId, SerializableGuid savedAnchorGuid)
    Parameters
    Type Name Description
    XRResultStatus resultStatus

    The status of the completed save operation.

    TrackableId trackableId

    The TrackableId of the anchor requested to be saved.

    SerializableGuid savedAnchorGuid

    If resultStatus.IsSuccess(), the anchor's persistent anchor GUID. Otherwise, SerializableGuid.empty.

    Fields

    resultStatus

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

    Declaration
    public XRResultStatus resultStatus
    Field Value
    Type Description
    XRResultStatus

    savedAnchorGuid

    If resultStatus.IsSuccess(), the anchor's persistent anchor GUID. Otherwise, SerializableGuid.empty.

    Declaration
    public SerializableGuid savedAnchorGuid
    Field Value
    Type Description
    SerializableGuid

    trackableId

    The TrackableId of the anchor requested to be saved.

    Declaration
    public TrackableId trackableId
    Field Value
    Type Description
    TrackableId

    Properties

    defaultValue

    Get a default instance, initialized with StatusCode.UnknownError.

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