Setup Demo Scenes

Demo Scenes

After importing Easy Code For Vivox into your project from the Unity Asset Store open the scenes folder in Assets/EasyCodeForVivox/Demo Scenes you will see all the available demo scenes in the current version you have imported. The Chat demo scenes use the TextMeshPro Unity UI and come ready to use so you can see Vivox in action ASAP (As soon as possible). The 3d demo scenes require Unity's NetCodeForGameobjects.

Inside of Assets/EasyCodeForVivox/Examples/Demo Scene Examples/ folder you will see a script called EasyChatExample.cs or Easy3DExample.cs The example scripts mentioned above are inheriting from EasyManager.cs Feel free to change the class name of the Example scripts or create your own by inheriting from EasyManager.cs as a base class. EasyManager.cs inherits from MonoBehaviour so you can attach it to a GameObject. EasyExample.cs contains higher level methods (not as complex) to be able to access Vivox functionality to be used in void methods for buttons or UI elements in Unity.

** Don’t change the name of EasyManager.cs . Create a copy of it and change its name and namespace

Also in Visual Studio 2019/2022 if you click on the name of a script and hold Control and then press R twice ( ctrl + R + R ) you will automatically rename any reference to the script you want to rename. Recommended if you end up using the default example scripts that come with asset. Sometimes you have to manually change the filename in Unity for the script to compile properly

Last updated