ARCloudAnchor

The ARCloudAnchor is an ARCore Extensions object that provides a similar service to AR Foundation's ARAnchor as an anchor for game objects in your scene.

It is backed by an ARCore Cloud Anchor to synchronize pose data across multiple devices.

Summary

Inheritance

Inherits from: UnityEngine::MonoBehaviour , UnityEngine::XR::ARSubsystems::ITrackable

Properties

cloudAnchorId
string
Deprecated. When hosting an anchor using an async method, get the Cloud Anchor ID from the HostCloudAnchorResult object. This will always return the empty string or null, except for anchors created by deprecated methods.
Gets the Cloud Anchor Id associated with this Cloud Anchor.
cloudAnchorState Deprecated. When hosting or resolving an anchor using an async method, get the result status from the HostCloudAnchorResult or ResolveCloudAnchorResult object. This will always return CloudAnchorState.None, except for anchors created by deprecated methods.
Gets the CloudAnchorState associated with this Cloud Anchor.
nativePtr
Gets the native pointer that represents this Cloud Anchor.
pose
Gets the Pose associated with this Cloud Anchor.
trackableId
Gets the TrackableId associated with this Cloud Anchor.
trackingState
Gets the TrackingState associated with this Cloud Anchor.

Public functions

OnDestroy()
void
When the game object containing the ARCloudAnchor component is destroyed, the underlying native Cloud Anchor object will be detached and the resource will be released.
Update()
void
Unity Update method.

Properties

cloudAnchorId

string cloudAnchorId

Gets the Cloud Anchor Id associated with this Cloud Anchor.

For newly created points the Id will be an empty string until the Cloud Anchor is in the CloudAnchorState.Success state. This Id is provided on the device hosting the Cloud Anchor, and is used to resolve a corresponding Cloud Anchor on other devices. See ARAnchorManagerExtensions.ResolveCloudAnchorId( UnityEngine.XR.ARFoundation.ARAnchorManager, string) for more information.

Deprecated. When hosting an anchor using an async method, get the Cloud Anchor ID from the HostCloudAnchorResult object. This will always return the empty string or null, except for anchors created by deprecated methods.

cloudAnchorState

CloudAnchorState cloudAnchorState

Gets the CloudAnchorState associated with this Cloud Anchor.

Deprecated. When hosting or resolving an anchor using an async method, get the result status from the HostCloudAnchorResult or ResolveCloudAnchorResult object. This will always return CloudAnchorState.None, except for anchors created by deprecated methods.

nativePtr

IntPtr nativePtr

Gets the native pointer that represents this Cloud Anchor.

pose

Pose pose

Gets the Pose associated with this Cloud Anchor.

trackableId

TrackableId trackableId

Gets the TrackableId associated with this Cloud Anchor.

trackingState

TrackingState trackingState

Gets the TrackingState associated with this Cloud Anchor.

Public functions

OnDestroy

void OnDestroy()

When the game object containing the ARCloudAnchor component is destroyed, the underlying native Cloud Anchor object will be detached and the resource will be released.

Update

void Update()

Unity Update method.