Sample UI
Last updated
Last updated
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.
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 and deployed a replication server. Also make sure you have selected the correct region from the Region dropdown menu.
If you want to be connect to a Replication Server running on your local machine, make sure you have ticked Allow local (Sample UI) under Project Settings -> coherence.
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 allows you to create or join rooms on the selected region.
Connect Dialog Worlds allows you to join worlds on the selected region, but you can only create new worlds from the coherence portal.
Note: You can also build your own interface to connect players to the server, or programmatically connect without any UI.