Before we start the ARCore CloudAnchors
, under processes will be done:
JDK
to use keytool
Google Cloud Platform
arcore-unity-extensions
package from the google-ar
official github.Create a new Project Templated by AR (Core)
.
3.2.0
2021.3.6f1 (LTS)
0. Prerequisites
Windows
> Package Manager
> + Add package from disk...
> package.json
Persistent Cloud Anchor Sample
Player
Other Settings
> Set the Target API Level
to API Level 32
Package Name
to what you want. Publishing Settings
> Keystore Manager...
> Create New
XR Plug-in Management
Plug-in Providers
> Check ARCore
ARCore Extensions
/ Android Authentication Strategy
> Change Keyless (Recommanded)
Optional Features
> Check Cloud Anchors
Click the button to use ARCore Cloud Anchor API
.
Create a new API Key
.
And set the API Restriction
to ARCore Cloud Anchor API
, then Save
.
SHA-1 Fingerprint
from keystore
cd <Java/JDK/bin/>
.\keytool.exe -list -v -keystore <your keystore path>
Enter keystore password: <your password>
Backup SHA-1
Certificate fingerprint.
Create OAuth Client ID
Package name
in Project Settings
SHA-1 Certificate fingerprint
in keystore
And then Save
.
PersistentCloudAnchors.unity
Scene in Assets/Samples
Android
[Link] https://developers.google.com/ar/develop/unity-arf/cloud-anchors/developer-guide-android
[Link] https://www.oracle.com/java/technologies/downloads/
[Link] https://github.com/google-ar/arcore-unity-extensions