Struct XRSaveAnchorResult
The result of an operation to save an anchor to persistent storage.
Inherited Members
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 |
SerializableGuid | savedAnchorGuid | If |
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 |