Our new developer documentation is now available. Please check it out!
Connection Event Summary
On this page
Local | Remote | Description |
---|---|---|
OnRoomJoin | Triggered if user started to join a room | |
OnRoomJoined | OnPeerJoined | Triggered if user joined a room |
ODIN does not require any bookkeeping. A room is created automatically for the first connection and will be removed whenever the last user left the room. You join a room by calling the JoinRoom method of the OdinHandler instance in your scene.
class MyVoiceHandler: MonoBehaviour
{
public string RoomName = "default";
// Start is called before the first frame update
void Start()
{
OdinHandler.Instance.JoinRoom(RoomName);
}
}