2. Configuration Settings

2.1. Download the ARGear Unity Plugin

In order to use the ARGear Unity plugin, you need to create an account from https://argear.io and download the plugin from "Download Free SDK" menu. You will first need to create an account on the website.

2.2. Android Configuration

2.2.1. Create and Import a Project

  • Create a new 3D project in Unity

  • Import the downloaded ARGear Unity plugin.

    • Select Assets > Import Package > Custom Package from the top menu

    • Select the downloaded unity package file.

  • Import all packages from the Import Package dialog window.

2.2.2. Project Setting Configuration

  • Open build setting by selecting File > Build Settings from the top menu.

  • Select Android and click Switch Platform.

  • Click Player Settings in the Build Settings dialog window.

  • Configure values from Settings dialog window as below.

2.2.3. Placing of ARGearPlugin Object

  • Place an ARGearPlugin object in the Assets > Prefab folder in Project Explorer.

  • AR camera will properly work only if MainCamera and Directional Light objects are removed.

2.2.4. API Information Configuration

In order to run ARGear, API information must be set in a script in the ARGearPlugin object. API URL and key must be set, which can be found in Project Overview > Information in Console after creating a project in the ARGear Console (https://console.argear.io). The figure below depicts a sample ARGear Unity App configuration information.

2.3. iOS Configuration

2.3.1. Import and Create a Project

  • Create a new 3D project in Unity

  • Import the downloaded ARGear Unity plugin.

    • Select Assets > Import Package > Custom Package from the top menu

    • Select the downloaded unity package file.

  • Import all packages from the Import Package dialog window.

2.3.2. Project Setting Configuration

  • Open build setting by selecting File > Build Settings from the top menu.

  • Select iOS and click Switch Platform.

  • Click Player Settings in Build Settings dialog window.

  • Configure values from the Settings Dialog window as below.

2.3.3. XCode Build Setting

Add frameworks in TARGETS > General > Frameworks, Libraries, and Embedded Content from the exported Unity project.

Set TARGETS > Build Settings > Build Options > Enable Bitcode = No of your project as below.

Add Privacy - Camera Usage Description in Info.plist.

2.3.4. Placing of ARGear Camera Object

  • Place an ARGearPlugin object in the Assets > Prefab folder in Project explorer.

  • AR camera will properly work only if MainCamera and Directional Light objects are removed.

2.3.5. API Information Configuration

In order to run ARGear, API information must be set in the script of the ARGearPlugin object. The API URL and authentication keys must be set, which can be found in Project Overview > Information in the ARGear Console after creating an ARGear project (https://console.argear.io). The figure below depicts a sample ARGear Unity App configuration information.

Last updated