#Vivox issues
1 messages · Page 1 of 1 (latest)
using System.Collections;
using System.Collections.Generic;
using Unity.Services.Vivox;
using UnityEngine;
public class ChatHandler : MonoBehaviour
{
void channelJoined(string channel) {
Debug.Log("joined " + channel);
}
async void Initiate()
{
VivoxService.Instance.ChannelJoined += channelJoined;
// echo channel: await VivoxService.Instance.JoinEchoChannelAsync("TestChannel", ChatCapability.AudioOnly);
Channel3DProperties properties = new Channel3DProperties();
await VivoxService.Instance.JoinPositionalChannelAsync("LobbyVC", ChatCapability.TextAndAudio, properties);
}
void Start()
{
Initiate();
}
void Update() {
if (VivoxService.Instance.ActiveChannels.Count > 0) {
VivoxService.Instance.Set3DPosition(transform.GetChild(0).gameObject, "LobbyVC");
}
}
}
(script inside the player prefab.)
Any ideas @velvet valley ?
You likely need to set the 3D channel properties
https://docs.unity3d.com/Packages/com.unity.services.vivox@16.4/api/Unity.Services.Vivox.Channel3DProperties.html
I just set these, it still does the same thing.
are you sure transform.GetChild(0).gameObject position is correct. Does the same thing happen when you use gameObject there
Yep. Same thing is happening.
I tested my mic in a echo channel it's functioning normally.
I could send you a scene perhaps
@velvet valley do u want me to send u a scene
Sure. It might be a minute before I can get to it though
@velvet valley looked at it yet..?
@velvet valley ???
Sorry. been dealing with this Crowdstrike issue in my Day job all weekend and its not letting up any time soon