Learn about working with Cloud Anchors in your own apps.
If you are new to Cloud Anchors:
Make sure you understand the process used to host and resolve Cloud Anchors.
Try the codelab for Cloud Anchors.
Enabling Cloud Anchors in your app
By default, Cloud Anchors are disabled in ARCore. You can enable Cloud Anchor capabilities in your ARCore Extensions configuration.
Note that the ARCore Cloud Anchors sample app ships with Cloud Anchors enabled for demo purposes only.
Add an API Key
To use the ARCore Cloud Anchor API in your app, you'll need an API Key.
Obtain an API Key. See Setting up API keys in the Google Cloud Platform Console Help Center if you are new to working with API keys.
Enable the ARCore Cloud Anchor API for your Google Cloud Platform project.
Add your API key to your project:
- In Unity, go to Edit > Project Settings > Google ARCore.
- Add your API key to the Cloud Anchor API Keys field.
Note the following when enabling Cloud Anchors capabilities in your app:
Memory usage will increase when you enable Cloud Anchors.
Battery usage is expected to be higher due to increased network usage and CPU utilization.
The ARCore Cloud Anchor API has the following quotas for request bandwidth:
|Quota type||Maximum||Duration||Applies to|
|Number of anchors||Unlimited||N/A||Project|
|Anchor host requests||30||minute||IP address and project|
|Anchor resolve requests||300||minute||IP address and project|