Struct XRShareAnchorResult
Represents the results, per anchor, of a share anchor operation.
Inherited Members
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 |