Struct XRLoadAnchorResult
The result of an operation to load an anchor from persistent storage.
Inherited Members
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 |
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 |