Google. XR. ARCoreExtensions. 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.
Summary
It is backed by an ARCore Cloud Anchor to synchronize pose data across multiple devices.
Inheritance
Inherits from:UnityEngine::MonoBehaviour
,
UnityEngine::XR::ARSubsystems::ITrackable
Direct Known Subclasses:
Google.XR.ARCoreExtensions.ARCloudReferencePoint
Properties |
|
---|---|
cloudAnchorId
|
string
Gets the Cloud Anchor Id associated with this Cloud Anchor.
|
cloudAnchorState
|
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.
cloudAnchorState
CloudAnchorState cloudAnchorState
Gets the CloudAnchorState
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.