docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XRShareAnchorResult

    Represents the results, per anchor, of a share anchor operation.

    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.MetaOpenXR.dll
    Syntax
    public readonly struct XRShareAnchorResult

    Constructors

    XRShareAnchorResult(XRResultStatus, TrackableId)

    Construct an instance.

    Declaration
    public XRShareAnchorResult(XRResultStatus resultStatus, TrackableId anchorId)
    Parameters
    Type Name Description
    XRResultStatus resultStatus

    The status of the completed share operation.

    TrackableId anchorId

    The anchor ID requested to be shared.

    Properties

    anchorId

    The TrackableId of the anchor requested to be shared.

    Declaration
    public TrackableId anchorId { get; }
    Property Value
    Type Description
    TrackableId

    defaultValue

    Get a default instance, initialized with StatusCode.UnknownError.

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

    resultStatus

    The status of the share anchor operation. If resultStatus.IsError(), the anchor was not shared.

    Declaration
    public XRResultStatus resultStatus { get; }
    Property Value
    Type Description
    XRResultStatus
    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)