Text Chat Sample
This text-focused sample showcases a robust chat experience that demonstrates sending, editing, and deleting DM or channel messages along with retrieving past conversations and their message history.
Import the Text Chat Sample
After adding the Vivox package to your Unity project, you'll find a Samples tab on the Vivox page of the Package Manager.
- Open the Unity Package Manager and select Vivox.
- Expand the Samples section.
- Select Import.
When this process is complete, the Text Chat Sample is imported into your project's Assets folder.
Note: The Text Chat Sample is only available in versions 16.4.0 and newer.
Use the Text Chat Sample
Prerequisite: Before running the sample scene make sure your Unity project is connected to the Unity Dashboard and your Vivox credentials have been set. You can do this from within the Editor by navigating to Services > Vivox > Configure.
After you've imported the sample you can find it in the Samples folder under Assets. Navigate to Samples > Vivox > versions # > Text Chat Sample > Assets > TextChatSample > Scenes and run the TextChatSample scene.
Entering play mode will display the sign in screen. To begin using the sample choose a usernane and select Sign in.
Note: The sample works best in portrait mode. Set your aspect ratio to 9:16 or use Simulator view with a mobile phone selected to have the best experience with the sample.