チャンネルから退出する
How to remove a player from a Vivox channel and disconnect from communication.
読み終わるまでの所要時間 1 分最終更新 23日前
チャンネルからユーザーを削除するには、退出するチャンネルの名前で
VivoxService.Instance.LeaveChannelAsync(string channelName)VivoxService.Instance.LeaveAllChannelsAsync()VivoxService.Instance.ActiveChannels
以下のコードは、この操作の実行方法の例を示します。
using UnityEngine;using Unity.Services.Vivox;class VivoxBasicsExample : MonoBehaviour{ . . . void LeaveChannel(string channelNameToLeave) { . . . VivoxService.Instance.LeaveChannelAsync(channelNameToLeave); . . . } . . .}