# Sample UI

The **coherence** **Sample UI** prefab that comes bundled with the coherence SDK contains some basic UI controls that allows you to easily connect to and disconnect from servers.&#x20;

The connect dialog lists all available servers for your game. If the list is empty, please make sure you have [setup your game on the coherence portal](https://docs.coherence.io/0.5.2/get-started/create-an-account) and [deployed a replication server](https://docs.coherence.io/0.5.2/get-started/deploy-and-share). Also make sure you have selected the correct region from the **Region dropdown menu**.

{% hint style="info" %}
If you want to be connect to a Replication Server running on your local machine, make sure you have ticked **Local Development Mode** under **Project Settings -> coherence.**
{% endhint %}

The connect dialog comes in two flavors, one is for Rooms and the other is for Worlds. The **Connect Dialog Rooms** is enabled by default. If your project is configured for Worlds, you'll need to select the **coherence Sample UI** in the Hierarchy window and activate the **Connect Dialog Worlds**.

![Connect Dialog Rooms. There currently one room available on the local machine.](https://1930722764-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MWd0ZPEK7vE9nkE0b7G-1552174847%2Fuploads%2FJMcmBvgedWL3kTMZcycD%2Fconnect_scene.png?alt=media\&token=53780752-e0e6-4134-a8c1-1c8605932a57)

**Connect Dialog Rooms** allows you to create or join rooms on the selected region.&#x20;

**Connect Dialog Worlds** allows you to join worlds on the selected region, but you can only create new worlds from the coherence portal.

{% hint style="info" %}
Note: You can also build your own interface to connect players to the server, or programmatically connect without any UI.
{% endhint %}

&#x20;&#x20;
