EasyVivoxUtilities.cs
EasyVivoxUtilities contains Helper/Utility methods that don't require dependencies
All libraries this script depends on
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Android;
#if UNITY_ANDROID
using UnityEngine.Android;
#elif UNITY_IOS
using UnityEngine.iOS;
#endifThe code below is called a preprocessor directive and is only valid if the build is for Android platform or else the compiler will ignore this code. Read more about it here
#if PLATFORM_ANDROID
using UnityEngine.Android;
#elif UNITY_IOS
using UnityEngine.iOS;
#endifAndroid
RequestAndroidMicPermission() is used to request microphone access if the destination build is Android
iOS
RequestIOSMicrophoneAccess() is used to request Microphone access for iOS.
In order to access Microphone on iOS you need to edit Info.plist. Unity provides easy access in the Player Settings. Read more about it here
Filter User/Channel Names
FilterChannelAndUserName is used to filter out unsupported characters in Usernames and Channel names when using Vivox. This method is used under the hood in EasyCode automatically, but you can call this method yourself
This does not filter out bad words or racial slurs, recommended to implement your own filter or use a 3rd party asset/service such as Language and Profanity Filter (Not Sponsored) or implement your own using this list of bad words courtesy of ShutterStock (Not Sponsored)
This method is automatically implemented for you in the Login() and JoinChannel() Methods
Last updated