> For the complete documentation index, see [llms.txt](https://thirdeyegen.gitbook.io/developer-portal/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://thirdeyegen.gitbook.io/developer-portal/visioneye-slam-developement/getting-started-in-unity.md).

# Getting Started in Unity

To get started you will need:

* Unity 2019.4&#x20;
* Our [UnityPackage](https://drive.google.com/file/d/1-wrsAxrTHDHPhrgVNZP34bKTIifKIksf/view?usp=sharing)
* A basic understanding of Unity 2019
* X2 with VisionEye SLAM Module

### Setting up Unity Development Environment

Open Unity and Create a new  3D project.

![](/files/-MUPkajJpiNQ9pm4Zv5S)

Go to top menu Assets -> Import Package -> Custom Package and Select the provided .unitypackage.

<div align="left"><img src="/files/-MUPmqIEcXuajp_kwMfN" alt=""></div>

A import dialog will appear. It is important to select items present in the package and then import.

<div align="left"><img src="/files/-MVNQvHTDUPiSm-_T8Xr" alt=""></div>

Navigate to Assets/Scenes/SampleScene and open the *example\_cube.unity scene.*

<div align="left"><img src="/files/-MUPtRa3Q7MMIESYjK7C" alt=""></div>

The scene should open and contain the objects below. There will be a Camera Rig a Colored Cube, a GameObject and a Directional Light.

![](/files/-MUPuC3qbJEWs_nFG666)

**Please Note:** If you are moving the camera around the scene please move the Rig as a whole. Moving the camera's individually with result in problems displaying your app on the X2 Headset.

From here you can modify the scene with your desired models, scripts, etc. Next we will cover how to setup Unity to build an APK.&#x20;

### Setting up Unity Build Settings for X2

In the top menu go to File -> Build settings

<div align="left"><img src="/files/-MUQEJlDyUI1rFxxPe2T" alt=""></div>

The Build Setting window will open. Under platform, click on "Android" Then Click Switch Platform in the lower right of the window.

<div align="left"><img src="https://lh6.googleusercontent.com/CpLZBWwUsTLZf6blukZT1weV1iE_4RVWAFPj2LrNGipt9qRsxBTGzUu4hqVwiQbAjcxK46w_XSX4tIrHdSsOcoiCdRCAurMfwYJMP5YwatJKy7zG627hSQjYx0zNLCqgvnULSU1P" alt=""></div>

Click to the Player Settings button to open the player settings.

<div align="left"><img src="https://lh3.googleusercontent.com/zoJL1lcpUYTWa1_Vyx5R0BfvpAp_KKfwJ1kCSqGEF4GjQ0aS2KwvwPsTEVY8JRdp9PFpdJPzHlCY0gSJMGDS7Bln1Krjh5CWF2WOyajmFVdv14GMLFydzitAVI6-OMdhY5il-RhT" alt=""></div>

Click on Player then Find Minimum API Level and change it to Android 9.0 Change and set "Scripting Backend" to IL3CPP

<div align="left"><img src="https://lh4.googleusercontent.com/_mmvAUeVKp0mE2ybkXMJD0Wx2ABGehAoVHp4uNc6D31P-WRSQRCixQQ4hGL0eMFEtYP7UEsQ86i8YVNtxSgs9quKOCGTeMXjK419tLWM2Rpbfxmj16AIpcU2TD78bPB9zBI1uM3j" alt=""></div>

Further down in Player Settings, Uncheck ARMv7 and Check ARM64 under "Target Architecture"

<div align="left"><img src="https://lh4.googleusercontent.com/eo12v7edBZPWMFTR9myAtbbCFpcamDSv4yMNM1e26JnQ6ImbfY_BB4G1zWLq2AzWpMzXI5qulnhkoy6cy1CDiNYOYHrSwcV7fCqnMY8PAs_y0yG9WPRwM2KQD5kkiVyzvSYGzQlu" alt=""></div>

Close Player Settings and Build Settings windows

With the X2 plugged in, You can now build the and run your application. You can build by Selecting File -> Build and Run

<div align="left"><img src="/files/-MUUNib5jt0RWv6B77YF" alt=""></div>

**Video covering the these topics:**

{% embed url="<https://www.youtube.com/watch?v=-BUWK14WTIk>" %}
Our Video Getting Started Guide
{% endembed %}

**You can reference our slam API below:**

{% embed url="<https://thirdeyegen.gitbook.io/visioneye-slam-api-documentation/>" %}
