> For the complete documentation index, see [llms.txt](https://xreal.gitbook.io/nrsdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xreal.gitbook.io/nrsdk/development/plane-detection-tutorial/import-the-package.md).

# 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="/files/mIuZDeUJajzzvPiUjpWY" %}

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:

![](/files/5wG3vvjN6OhnmfyrGaIQ)

### 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

![](/files/F8X4S7i6y7V9O3Ia4NYa)

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:

![](/files/FTECCdQATJU2QVYo9Bi1)

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`

![](/files/JdkRhlCqlALiOI4q7ojt)

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`

![](/files/tKRantub2IndHu5P2SpV)

![](/files/M1AOYaFsAJS1vgISzPsE)

5\. In `NR Kernal Session Config` panel, activate `Plane Finding Mode` and `Image Tracking Mode` is activated as follows.

<figure><img src="/files/o1O7VaMsCrSo8oHjHPUn" alt=""><figcaption></figcaption></figure>

### 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](/nrsdk/nrsdk-fundamentals/quickstart-for-android.md) to test if your app built with the current environment runs properly.

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://xreal.gitbook.io/nrsdk/development/plane-detection-tutorial/import-the-package.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
