# Scene setup

## Setup Video Tutorial

{% embed url="<https://www.youtube.com/watch?v=O0CnZcsuRRg&ab_channel=coherence>" %}

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.&#x20;

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

### **1. Add MonoBridge**

<div align="left"><img src="https://3643360286-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MWd0ZPEK7vE9nkE0b7G%2F-MYu3hBCnegCkfyP1sA2%2F-MYvCemoHF03m8EBu_Rw%2Fimage.png?alt=media&#x26;token=1ebad475-263b-4ca4-8de0-3aeacd6ad68e" alt=""></div>

`coherence -> Scene Setup -> Create MonoBridge`

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

### **2. Add LiveQuery - Hierarchy**

<div align="left"><img src="https://3643360286-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MWd0ZPEK7vE9nkE0b7G%2F-MYu3hBCnegCkfyP1sA2%2F-MYvD3y1i2XL1SoJZ3Ax%2Fimage.png?alt=media&#x26;token=342237e2-5e9f-416a-969b-e5a6012a35f9" alt=""></div>

`coherence -> Scene Setup -> Create LiveQuery`

Creates a [*LiveQuery* ](https://docs.coherence.io/0.4.14/api-reference/network-sdk/livequery)which queries the area around the local player to get 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.&#x20;

<div align="left"><img src="https://3643360286-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MWd0ZPEK7vE9nkE0b7G%2F-MYu3hBCnegCkfyP1sA2%2F-MYvDUzq9NauwRZlj-iD%2Fimage.png?alt=media&#x26;token=295db710-cef9-43a5-ba8e-2b41d3998643" alt="Set the radius of the LiveQuery"></div>

### **3. Add** the Sample **UI**

<div align="left"><img src="https://3643360286-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MWd0ZPEK7vE9nkE0b7G%2F-MYu3hBCnegCkfyP1sA2%2F-MYvDf3KmpYNfVir2Gxe%2Fimage.png?alt=media&#x26;token=61e86c6f-cdfe-487b-9d13-6318ab1c27a4" alt=""></div>

`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.

<div align="left"><img src="https://3643360286-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MWd0ZPEK7vE9nkE0b7G%2F-MYvE9rXRN5hAIcn5WyA%2F-MYvEJmfw8xy5gf3TPfW%2Fimage.png?alt=media&#x26;token=a64dd05f-7c7c-4dfa-a3bc-26f0860ad6e8" alt="Sample Connect dialog"></div>
