Namespace OdinNative.Unity
Classes
OdinBanner
OdinConnection
Wrapper class of Odin connections
This convenient class provides dispatching of events to Unity with passthrough
OdinCrypto
Wrapper class of OdinNative.Wrapper.Crypto for Unity.
This convenient class provides predefined encryption helper functions for Unity. If Peers do not have the same cipher they can not communicate with each other besides some events.
OdinMedia
Wrapper class of OdinNative.Wrapper.MediaDecoder for Unity (require AudioSource)
This convenient class provides predefined helper functions to cover for a default usecases where the voice chat needs to work with AudioSource, AudioClip, AudioMixer, ...
Default Unity GameObject altering functions:
- OdinNative.Unity.OdinMedia.AddApm()Add
to the current GameObject - OdinNative.Unity.OdinMedia.AddVad()Add
to the current GameObject - OdinNative.Unity.OdinMedia.AddVolumeBoost()Add
to the current GameObject - OdinNative.Unity.OdinMedia.AddMute()Add
to the current GameObject
OdinPeer
Wrapper class of OdinNative.Wrapper.PeerEntity for Unity
This convenient class provides dispatching of events to Unity with passthrough
Default Unity GameObject altering event callback functions:
OdinNative.Unity.OdinPeer.Peer_MediaAdded(System.Object,MediaAddedEventArgs)
Creates GameObject with OdinNative.Unity.OdinMedia component and attach mediaOdinNative.Unity.OdinPeer.Peer_MediaRemoved(System.Object,MediaRemovedEventArgs)
Destroy GameObject with OdinNative.Unity.OdinMedia component
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