After enabling at least one region in the , you can use the CloudService.Rooms API to create Rooms and delete and fetch existing Rooms. After fetching an existing Room, you can join it via the CoherenceBridge.JoinRoom method:
usingSystem.Collections.Generic;usingCoherence.Cloud;usingCoherence.Toolkit;usingSystem.Collections;usingUnityEngine;publicclassAsyncRoomsExample:MonoBehaviour{publicCoherenceBridge bridge;privateCloudService cloudService;voidStart() { cloudService =bridge.CloudService; CreateAndJoinRoom(); }privateasyncvoidCreateAndJoinRoom() { // Wait for connection to be established with the coherence Cloud, authenticated as a Guest User.awaitcloudService.WaitForCloudServiceLoginAsync(1000); // Fetch all available Room regions from our ProjectIReadOnlyList<string> availableRegions =awaitcloudService.Rooms.RefreshRegionsAsync(); // Create a room and join it for the first available regionif (availableRegions.Count>0) {CloudRoomsService roomsService =cloudService.Rooms.GetRoomServiceForRegion(availableRegions[0]);RoomData newRoom =awaitroomsService.CreateRoomAsync(RoomCreationOptions.Default);bridge.JoinRoom(newRoom); } }}