# Scene Setup

## Setup video tutorial

The topics of this page are covered in the first minute of this video:

{% embed url="<https://www.youtube.com/watch?v=kyUSiBpZ2Bc>" %}

It's quick and easy to set up a networked scene from scratch using the **coherence** SDK. This example will show you the basic steps to sync up some moving characters.

Add these components to your scene to prepare it for network synchronization.

### **1. Add MonoBridge**

![](https://4229720839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdBiAEtFeZKdAwRyJ9MEL%2Fuploads%2Fx0jxo2Ora7AJl6AulkbN%2FScreenshot%202021-07-06%20at%2012.24.12.png?alt=media)

*coherence > Scene Setup > Create MonoBridge*

This object takes care of connected `GameObject` lifetimes and allows us to develop using traditional `MonoBehaviour` scripts.

### **2. Add LiveQuery - hierarchy**

![](https://4229720839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdBiAEtFeZKdAwRyJ9MEL%2Fuploads%2FVerZTajFsBTfmu6SHk35%2Fscreenshot-2021-07-06-at-12.09.37%20\(1\).png?alt=media)

*coherence > Scene Setup > Create LiveQuery*

Creates a [*LiveQuery* ](https://docs.coherence.io/0.10/coherence-sdk-for-unity/components/livequery)which queries the area around the local player to get the required information from the Replication Server. You can surround your entire scene in one query or can attach it to an object such as the player or a camera.

![Set the radius of the LiveQuery](https://4229720839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdBiAEtFeZKdAwRyJ9MEL%2Fuploads%2FudVz88i70CD2zCcyQC8P%2Fimage.png?alt=media)

### **3. Add** the sample **UI**

![](https://4229720839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdBiAEtFeZKdAwRyJ9MEL%2Fuploads%2Fez7EXvq25bfLxgOIYMDx%2FScreenshot%202021-07-06%20at%2012.25.22.png?alt=media)

*coherence > Scene Setup > Add Sample UI*

Creates a `Canvas` (and `Event System` if not already present in the scene) with a sample UI that helps you connect to a local or remote Replication Server. You can create your own connection dialog, this one is just a quick way to get started.

## Using the coherence Hub window

Using the *coherence Hub* window gives you an overview of everything related to networking in your project. The *Overview* tab will show you the current status and which actions you need to perform for everything to work.

*coherence > coherence Hub*

<figure><img src="https://4229720839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdBiAEtFeZKdAwRyJ9MEL%2Fuploads%2FeoQNXsz2TH3JKSJwLBs0%2Fimage.png?alt=media&#x26;token=2d0ba2f9-9a93-4f1f-8e82-2771a8582c4a" alt=""><figcaption></figcaption></figure>

### **Automatic issue solving**

If we have identified any issues in your project, the *Overview* tab provides a one-click solution to solving it. In the example below, simply click the *blue link* next to the warning messages and **coherence** will redirect you to the correct place to learn more about how to fix the issue.

<figure><img src="https://4229720839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdBiAEtFeZKdAwRyJ9MEL%2Fuploads%2FeoQNXsz2TH3JKSJwLBs0%2Fimage.png?alt=media&#x26;token=2d0ba2f9-9a93-4f1f-8e82-2771a8582c4a" alt=""><figcaption><p>Finding and solving issues</p></figcaption></figure>
