# Detect planes in the real world

Now that a basic scene has been set up, you can start on developing the game. In this step, you will detect planes and draw them to the scene.

### Add an `PlaneDetector` component <a href="#add-an-arplanemanager-component" id="add-an-arplanemanager-component"></a>

An `PlaneDetector` detects and creates, updates, and removes game objects when the device's understanding of the environment changes.

1.Using the Hierarchy pane, create an empty `GameObject`.

2\. Rename it to `PlaneDetector`. This component will display planes until one is selected by the player.

3\. Select the new game object. Within the Inspector pane, click **Add Component** to add a `PlaneDetector`

![](https://content.gitbook.com/content/yXoV7SMVFQhr75lOIoQv/blobs/WcGvZ52Yyv2Ry90jjra5/image.png)

4\. Configure the `PlaneDetector`by setting the `Detected Plane Prefab` field:

* Click the button next to `None` to bring up the **Select GameObject** window.
* Select the **Assets** tab and search for **WoodenPlaneVisualizer**.

![](https://content.gitbook.com/content/yXoV7SMVFQhr75lOIoQv/blobs/GM2FWesVpzxJmnKsYly3/image.png)

This prefab from the starter package provides a wooden floor texture that will be used as the plane decoration.

### Run the app <a href="#run-the-app" id="run-the-app"></a>

1.Build and deploy your app as described in **Step 7** and **8** in [Getting Started with NRSDK](https://xreal.gitbook.io/nrsdk/nrsdk-fundamentals/quickstart-for-android) to test your changes

2\. Point your glasses at a horizontal real-world surface and move your glasses around to improve NRSDK's understanding of the world.

3\. When NRSDK has detected a plane, you should see a wood texture cover real-world surfaces. The `Plane Detector` instantiates the given `Detected Plane Prefab` for each detected plane.<br>
