Class OdinRoom
Wrapper class of OdinNative.Wrapper.Room.Room for Unity.
This convenient class provides dispatching of events to Unity with passthrough
Default Unity GameObject altering event callback functions:
OdinNative.Unity.OdinRoom.PeerJoinedCreateComponent(System.Object,PeerJoinedEventArgs)
Creates GameObject with OdinNative.Unity.OdinPeer componentOdinNative.Unity.OdinRoom.PeerLeftRemoveComponent(System.Object,PeerLeftEventArgs)
Destroy GameObject with OdinNative.Unity.OdinPeer componentOdinNative.Unity.OdinRoom.RoomStatusState(System.Object,RoomStateChangedEventArgs)
Destroy this components GameObject if the connection is closed i.e cleanup
Assembly: cs.temp.dll.dll
Implements:
Odin.IRoom
Properties
Samplerate
Unity samplerate
IsStereo
Unity channel flag
Id
Odin room id
CryptoCipher
Parent
Default value gameObject parent or Unity root
IsJoined
Fields
Gateway
Odin endpoint server
Token
Odin room token
AudioMixerGroup
Unity mixer
CryptoComponent
Odin Crypto cipher component
OnRoomJoined
OnMediaAdded
Event OdinNative.Wrapper.Room.Room.OnMediaStarted redirected as Unity event
OnMediaRemoved
Event OdinNative.Wrapper.Room.Room.OnMediaStopped redirected as Unity event
OnPeerJoined
Event OdinNative.Wrapper.Room.Room.OnPeerJoined redirected as Unity event
OnPeerLeft
Event OdinNative.Wrapper.Room.Room.OnPeerLeft redirected as Unity event
OnMessageReceived
Event OdinNative.Wrapper.Room.Room.OnMessageReceived redirected as Unity event
OnRoomStateChanged
Event OdinNative.Wrapper.Room.Room.OnRoomStatusChanged redirected as Unity event
Methods
GetBaseRoom<T>()
Odin base room
Returns
<T>
: wrapper room object##### Type Parameters
T
Room_OnDatagram(object, DatagramEventArgs)
Parameters
Type | Name |
---|---|
System.Object | sender |
Odin.DatagramEventArgs | args |
Room_OnRpc(object, RpcEventArgs)
Parameters
Type | Name |
---|---|
System.Object | sender |
Odin.RpcEventArgs | args |