Setting Up the Niantic SDK for Unity
ARDK 3.13.0 is launching April 23, 2025. All versions before 3.13.0, including ARDK 2.x, will enter a 6-month support window starting May 1, 2025 and stop working on November 1, 2025. See 3.13.0 Release Notes. Questions? support@nianticspatial.com
To set up the SDK, you will download and install Unity, then install the ARDK Unity packages and set up Unity for the platform your AR experience will run on. After that, you will authenticate Lightship in Unity with your API key, perform any additional setup your platform device requires, and set up the basic requirements for an AR scene in Unity.
The Lightship Magic Leap 2 integration is in beta, so some features may not work as expected.
Download and Install Unity
Download Unity. We support Unity 6 (with 6000.0.36f1) and Unity 2022 LTS (with 2022.3.57f1).
Unity 2022 LTS users will need to manually upgrade Visual Scripting from 1.9.0 to 1.9.1 or higher via the Package Manager to avoid a SessionStateChangedEventUnit error.
Create a Project and Install ARDK
- Android
- iOS
- Magic Leap 2
- Meta Quest 3
プロジェクトを作成し、ARDKをインストールする
- Universal 3D(Core) テンプレートで新しいUnityプロジェクトを作成します。
- Unityプロジェクトで、 Window トップメニューを開き、 Package Manager を選択します。
- Package Manager タ ブのプラスメニューから、 **Add package from git URL...**を選択してください。
https://github.com/niantic-lightship/ardk-upm.git
と入力します。- 新しいInput System PackageをARFoundation 5.0用に有効化するよう求められたら、 Yes をクリックしてください。 この際、Unityエディターの再起動が必要になることがあります。
- SharedARパッケージを追加するには、 :
https://github.com/niantic-lightship/sharedar-upm.git
を使用して同じ手順を繰り返します。
特定のARDKバージョンを使用する場合は、リリースページ(ardk-upm, sharedar-upm)から、 .tgz
をダウンロードしてください。 その後、上記のインストール手順に従い、Git URLではなく、「Add package from tarball」を選択します。
プロジェクトを作成し、ARDKをインストールする
- Universal 3D(Core) テンプレートで新しいUnityプロジェクトを作成します。
- Unityプロジ ェクトで、 Window トップメニューを開き、 Package Manager を選択します。
- Package Manager タブのプラスメニューから、 **Add package from git URL...**を選択してください。
https://github.com/niantic-lightship/ardk-upm.git
と入力します。- 新しいInput System PackageをARFoundation 5.0用に有効化するよう求められたら、 Yes をクリックしてください。 この際、Unityエディターの再起動が必要になることがあります。
- SharedARパッケージを追加するには、 :
https://github.com/niantic-lightship/sharedar-upm.git
を使用して同じ手順を繰り返します。
特定のARDKバージョンを使用する場合は、リリースページ(ardk-upm, sharedar-upm)から、 .tgz
をダウンロードしてください。 その後、上記のインストール手順に従い、Git URLではなく、「Add package from tarball」を選択します。