# Import the package

### Import the Starter Package

For this tutorial, we've provided a starter package that contains prefabs and scripts that will expedite some parts of the tutorial so you can focus on how to use plane detection feature in NRSDK.

1.Download the Plane Detection Starter Package:

{% file src="<https://1363773068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6MonFe6Phoj4t5Xi1d0%2Fuploads%2F2PfDvanHnWf0mV1thAv9%2FPlaneDetectionStarterPackage.unitypackage?alt=media&token=d375a01b-21a4-4629-b80c-f6f335482275>" %}

2\. Install the starter package by opening **Assets > Import Package > Custom Package...** and opening `PlaneDetectionStarterPackage.unitypackage`.

3\. In the window that pops up, ensure everything is selected.

4\. Click **Import**.

5\. After importing NRSDK and plane detection starter package, your project folder should look like this:

![](https://1363773068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6MonFe6Phoj4t5Xi1d0%2Fuploads%2FWTkNsddoxe4NpOFXKjyZ%2Fimage.png?alt=media\&token=f0356ea2-4c9b-4459-b47e-e79782d8d70d)

### Add the required scene elements <a href="#add-the-required-scene-elements" id="add-the-required-scene-elements"></a>

1. In `Assets > Scene` folder, rename the SampleScene to PlaneDetection

![](https://1363773068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6MonFe6Phoj4t5Xi1d0%2Fuploads%2FN22jkl4MFYd89Kt80Ro2%2Fimage.png?alt=media\&token=c739b8f7-c8c3-4e26-9859-4edd1f296897)

2\. In the project hierarchy, delete `MainCamera`, search in the project panel and drag in `NRInput` and `NRCameraRig` prefab (located in `Assets > NRSDK > Prefabs`) in the hierarchy. Your hierarchy should look like this:

![](https://1363773068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6MonFe6Phoj4t5Xi1d0%2Fuploads%2FzImKktBBQgA0elnM6F90%2Fimage.png?alt=media\&token=b6c73199-1149-478a-880c-3bcbbab32753)

3\. Click `NRInput` in Hierarchy,  make sure it is configured as following in the inspector. Specifically, `Raycast Mode` set to `Laser`, and `Input Source Type` to `Controller`

![](https://1363773068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6MonFe6Phoj4t5Xi1d0%2Fuploads%2Fjp522qw7FfMN4E7FO6Jl%2Fimage.png?alt=media\&token=11aea99b-3c62-4b34-b0b9-fb6443ecd30e)

4\. Click `NRCameraRig`, then click `NRKernalSessionConfig` in `NR Session Behaviour` component to find `NRKernalSessionConfig` configuration. Click the `NRKernalSessionConfig`  file appeared in the project folder. You could also locate `NRKernalSessionConfig`  in `Assets/NRSDK`

![](https://1363773068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6MonFe6Phoj4t5Xi1d0%2Fuploads%2F103gxtTtFT7sfm0JGUCf%2Fimage.png?alt=media\&token=0d04e71b-0930-4f83-be70-63a52f95d7b5)

![](https://1363773068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6MonFe6Phoj4t5Xi1d0%2Fuploads%2Fnd0D5VMZljHAIAQo3tyh%2Fimage.png?alt=media\&token=d7b2e419-e4a0-4e9f-be46-2c0dfc2470ec)

5\. In `NR Kernal Session Config` panel, activate `Plane Finding Mode` and Image `Tracking Mode` is activated as follows, and in `Target Devices`, `Nreal Light` should keep checked.

![](https://1363773068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6MonFe6Phoj4t5Xi1d0%2Fuploads%2FUaSbSxaUDDzlRcLjn30I%2Fimage.png?alt=media\&token=3808e536-c27c-442e-9cd8-8eea664b576d)

### Verify the setup <a href="#verify-the-setup" id="verify-the-setup"></a>

1.Search and Drag `NRLogo` (located in `Assets/NRSDK/Demos/HelloMR/Logo/Models/NRLogo.prefab`) into the hierarchy.&#x20;

2\. Ensure your Android phone is plugged in or connected through Wi-Fi for ADB debugging.&#x20;

3\. Follows **Step 7** and **Step 8** in [Getting Started with NRSDK](https://xreal.gitbook.io/nrsdk/v1.10.2/nrsdk-fundamentals/quickstart-for-android) to test if your app built with the current environment runs properly.

4\. You should see Nreal logo (`NRLogo`) appeared on the glasses.
