# Setting Up The Scene

To start building your 3D city, you’ll need to create a project folder, set up a new scene, and add the necessary Easy Grid Builder Pro 2 prefabs. Let’s walk through the process step-by-step.

***

## <mark style="color:green;">Creating the Project Structure</mark>

First, organize your project by creating a new folder and a demo scene.

1. **Create a New Folder:**
   * Create a folder in your Unity project for this tutorial.
   * Example name: `3D City Builder Tutorial Demo`
2. **Create a New Scene:**
   * Inside this folder, create a new scene for your demo.
   * Example name: `3D City Builder Tutorial Demo Scene`

***

## <mark style="color:green;">Adding Grid Manager Prefab</mark>

Next, add the core Easy Grid Builder Pro 2 prefabs to your scene.

* Locate the **Grid Managers** prefab in:\ <mark style="color:purple;">**Assets/SoulGames/Easy Grid Builder Pro 2/Prefabs/Grid Managers.prefab.**</mark>
* Drag and drop the prefab into your scene. This prefab manages all grid systems in your project.

**Important:** After adding the prefab:

1. Right-click on the **Grid Managers** object in the **Hierarchy**.
2. Select <mark style="color:purple;">**Prefab > Unpack Completely**</mark> to unpack the prefab.

{% hint style="info" %}
If your scene already includes an **EventSystem** GameObject, you’ll find another one in the **Grid Managers** prefab. Remove either the existing **EventSystem** or the one inside **Grid Managers** to avoid conflicts.
{% endhint %}

***

## <mark style="color:green;">Adding And Configuring Grid System</mark>

Now, let’s add and set up the grid system for your scene.

1. **Add the Grid Prefab:**
   * Locate the **EGB Pro 2 Grid XZ** prefab in:\ <mark style="color:purple;">**Assets/SoulGames/Easy Grid Builder Pro 2/Prefabs/EGB Pro 2 Grid XZ.prefab.**</mark>
   * Drag and drop it into your scene.
2. **Unpack the Prefab:**
   * Right-click on the prefab in the **Hierarchy** and select <mark style="color:purple;">**Prefab > Unpack Completely.**</mark>
3. **Grid Prefab Selection:**
   * Use the **EGB Pro 2 Grid XZ** prefab for 3D games, as it operates on the XZ plane.
   * The alternative **EGB Pro 2 Grid XY** prefab works on the XY plane but is otherwise identical.
4. **Generate a Unique Grid ID:**
   * After unpacking, locate the **Grid Unique ID** property in the **Core Grid Properties** section of the grid component.
   * Click the refresh button next to the property to generate a unique ID.
5. **Display the Grid in the Editor:**
   * Enable the **Update Grid In Editor** property (below the Grid Unique ID property) to preview the grid in the Unity Editor.

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

To get the most out of the Easy Grid Builder Pro XZ/XY component, it’s highly recommended to familiarize yourself with its features and properties. This will help you better understand how the grid system works and how to utilize it effectively in your projects. **Use the link below to Learn More:**

{% content-ref url="/pages/SMRJHI70p4QhAJZKK86g" %}
[Easy Grid Builder Pro XZ / XY](/easy-grid-builder-pro-2-documentation/primary-components/easy-grid-builder-pro-xz-xy.md)
{% endcontent-ref %}

***

## <mark style="color:green;">Replacing the Existing Camera with a Better Camera</mark>

To enhance the camera functionality in your scene, you can replace the default **Main Camera** with the **WASD Camera Controller Prefab** provided by Easy Grid Builder Pro 2.

1. **Remove the Existing Camera:**
   * In the **Hierarchy**, delete the **Main Camera** object.
2. **Add the WASD Camera Controller Prefab:**
   * Navigate to:\ <mark style="color:purple;">**Assets/SoulGames/Easy Grid Builder Pro 2/Prefabs/Sample Camera Controller/WASD Camera Controller Prefab.prefab.**</mark>
   * Drag and drop the **WASD Camera Controller Prefab** into your scene.
3. **Unpack the Prefab:**
   * Right-click on the **WASD Camera Controller Prefab** in the **Hierarchy**.
   * Select <mark style="color:purple;">**Prefab > Unpack Completely.**</mark>
4. **Adjust the Camera’s Transform:**
   * Set the **Transform Position** values to:
     * **X:** 0
     * **Y:** -10
     * **Z:** 20
   * Set the **Transform Rotation** values to:
     * **X:** 0
     * **Y:** 0
     * **Z:** 0
   * Keep all other values at their default settings.

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

For a deeper understanding of the **WASD Camera Controller** and how to customize it for your scene, refer to the detailed documentation **Using the link below:**

{% content-ref url="/pages/zOLmx8yBBsgEXNRiTUG0" %}
[WASD Camera Controller](/easy-grid-builder-pro-2-documentation/utility-components/wasd-camera-controller.md)
{% endcontent-ref %}


---

# Agent Instructions: 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:

```
GET https://soulgamess-studio.gitbook.io/easy-grid-builder-pro-2-documentation/walk-through-tutorial/make-a-3d-city-builder/setting-up-the-scene.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
