Login / Logout

Inherit from EasyManager.cs

using EasyCodeForVivox;

public class VivoxManager : EasyManager
{

}

Inject EasyLogin

using EasyCodeForVivox;
using UnityEngine;
using Zenject;

public class VivoxLogin : MonoBehaviour
{
    private EasyLogin _login;

    [Inject]
    private void Initialize(EasyLogin login)
    {
        _login = login;
    }
}

Login

  • Logs into Vivox if the username is valid

  • Although I use the term "userName" throughout EasyCode docs, you can think of "userName" as the Player Id and Display Name as the player's gamer tag

  • Sets the transmission modearrow-up-right to All so any Voice or Text chat automatically switches to a new channel whenever a channel is joined or switched.

  • There is an additional parameter that allows the player to joined as muted. This is useful for conference type settings like zoom chat where Admins/Moderators controls who can speak.

circle-info

EasyCode automatically validates if username is accepted by Vivox. You are still responsible to make sure another user with the same name is not already in the same channel

EasyManager

EasyLogin

Logout

Logs player out of Vivox.

EasyManager

EasyLogin

Last updated