Developer Documentation
Our new developer documentation is now available. Please check it out!

OdinPeer

public class OdinPeer : MonoBehaviour, IPeer

Wrapper class of Odin for Unity

This convenient class provides dispatching of events to Unity with passthrough as well as predefined helper functions to cover for a default usecases where the voice chat is visually and logical represented Unity gameobject that are manageable with the Unity editor.

Default Unity GameObject altering event callback functions:
  • Unity component

Properties

NameDescription
Parent
OnMediaAddedAdditional event redirect from Unity
OnMediaRemovedAdditional event redirect from Unity
Id
UserId
UserData

Public Methods

NameDescription
GetBasePeer
GetRoomApi
Peer_MediaAddedEvent trigger to create a Unity component
AddMediaComponentCreate a Unity component
Peer_MediaRemovedEvent trigger to remove a Unity component
RemoveMediaComponentRemoves all child components with the same media id