Easy Code For Vivox
  • Introduction
    • Official Links
    • Getting Started
      • Wheres The Code
      • Setup EasyCode in My Project
    • Setup Demo Scenes
      • Vivox Developer Portal
      • Unity Gaming Services (UGS) Dashboard
    • Things To Consider
    • FAQ
  • Development Info
    • Design Decisions
    • Release Notes
      • v2.0
      • v1.3
      • v1.2
      • v1.1
      • Template
    • Not Supported
  • Easy Code For Vivox
    • How do I setup EasyCode?
      • Setup Your Credentials
    • How do I do this in EasyCode?
      • Login / Logout
        • Login Properties
        • SetTransmissionMode
        • Login Events
      • Join / Leave Channel
        • Audio Channel
          • Audio Channel Events
        • Text Channel
          • Text Channel Events
        • Channel Events
      • Send Messages
        • Message Events
      • Mute / Unmute
        • Mute / Unmute Events
      • Subscribe to User Events
      • Volume / Audio Settings
        • Audio Device Events
      • Text To Speech ( TTS )
        • TTS Events
    • Vivox Access Tokens
      • Unity Cloud Code
    • Supported Vivox Events
      • Callback Methods
    • Folder Structure / Info
      • / Demo Scenes /
      • / Documentation /
      • / Examples /
      • / Plugins /
      • / Resources /
      • / Scripts /
      • / Settings /
    • Common Errors
  • API Info
    • EasySession.cs
    • EasyManager.cs
      • Main Methods
      • Vivox Event Callbacks
    • Easy3DPositional.cs
    • EasyVivoxUtilities.cs
    • EasySettings.cs
    • Extension Methods
      • EasySIPExtensions.cs
      • GameObjectExtensions.cs
      • TTSMessageExtensions.cs
      • UIExtensions.cs
      • VivoxExtensions.cs
      • EasyDebug.cs
    • EasyEvents.cs
  • Dependency Injection
    • Zenject vs Extenject
    • Install Dependencies
    • Inject Classes
  • Dynamic Events
    • Dynamic Events
    • Tests
    • Gotchas
    • Dynamic Async Events
      • Dont Do
    • Event Examples
  • Related Info
    • How do I do this in Vivox?
      • Conference Chat
    • Pre-Processor Directives
    • How to set iOS Info.plist for Unity?
    • Unity Gaming Services
  • The Future
    • Roadmap
    • Todo / Notes / Changelog
Powered by GitBook
On this page
  • Want to See the Code?
  • Want To Customize This Asset

Was this helpful?

  1. Introduction
  2. Getting Started

Wheres The Code

PreviousGetting StartedNextSetup Demo Scenes

Last updated 2 years ago

Was this helpful?

Want to See the Code?

Example scripts are located Assets/EasyCodeForVivox/Examples/Demo Scene Examples/ and are the highest abstraction away from the Vivox Unity SDK and the easiest scripts to get started with. They are meant to be example scripts to show you how to inherit from EasyManager.cs.

EasyManager.cs is a mid-level abstraction containing variable instances for the core Vivox Functionality scripts located in Assets/EasyCodeForVivox/Scripts/VivoxBackend

Feel free to modify the code, redistribute, or sell. Check out the License . This asset is meant for the community and small teams and there will always be a free version that implements most if not all Vivox functionality.

Want To Customize This Asset

Assets/EasyCodeForVivox/EasyScripts/VivoxBackend folder contains all the scripts you need to implement Vivox Voice and Text Chat functionality. If you want to start learning Vivox from scratch or implement your own code look at the scripts in the Vivox Backend folder. The code they contain are very similar to the Vivox Documentation and it will be easier to implement Vivox from scratch after having working code examples to compare to the Vivox Documentation.

EasyCode uses dependency injection under the hood. It's basically injecting existing Singleton instances of classes instead of using the new keyword (to create new classes/objects in every class where I need a specific class) or having a static instance of the class.

It is recommended to inherit from EasyManager.cs or create your own version using the scripts in VivoxBackend/ because all the boilerplate code has been written for you, you can just create custom wrapper methods around the default methods.

** Don’t change the name of EasyManager.cs or you risk breaking this asset and any future updates. It's better to create a copy and rename it. Also change the namespace to a namespace that fits your project and just import EasyCode with a using statement using EasyCodeForVivox;

here