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
- Unity component
Properties
Name | Description |
---|---|
Parent | |
OnMediaAdded | Additional event redirect from Unity |
OnMediaRemoved | Additional event redirect from Unity |
Id | |
UserId | |
UserData |
Public Methods
Name | Description |
---|---|
GetBasePeer | |
GetRoomApi | |
Peer_MediaAdded | Event trigger to create a Unity component |
AddMediaComponent | Create a Unity component |
Peer_MediaRemoved | Event trigger to remove a Unity component |
RemoveMediaComponent | Removes all child components with the same media id |