import_samples
The samples are available on our github https://github.com/niantic-lightship/ardk-samples
How to clone/download the samples:
git clone https://github.com/niantic-lightship/ardk-samples.git
or
Download the repo from https://github.com/niantic-lightship/ardk-samples using the code/download button on github.
Open the samples project in Unity by pressing Add in Unity Hub and browsing to the project.
You will also need to add an API key to have all samples work correctly.
Running the Samples in Unity 2022
By default, our sample projects run on Unity 6000.0.58f2, but you can downgrade them to version 2022.3.62f2 if you would prefer to use Unity 2022.
To downgrade the samples to Unity 2022:
- In Unity Hub, under Installs, install 2022.3.62f2 if you do not have it already.
- Under Projects, find the ARDK sample project. Click on the Editor Version and change it to 2022.3.62f2. Then click the Open with 2022.3.62f2 button.
- When the Change Editor version? dialog comes up, click Change Version.
- When the Opening Project in Non-Matching Editor Installation dialog comes up, click Continue.
- Disable the custom base Gradle template:
- In the Unity top menu, click Edit, then Project Settings.
- In the left-hand Project Settings menu, select Player, then click the Android tab.
- Scroll down to Publishing Settings, then un-check the box labeled Custom Base Gradle Template.
- In the Window top menu, open the Package Manager. Select Visual Scripting from the package list, then, if you are using version 1.9.0 or earlier, click the Update button.
- If there are any errors, the Enter Safe Mode? dialog will pop up. Click Enter Safe Mode to fix the errors.