ドキュメント

​
​

Development

User Acquisition

Monetization

産業

Vivox Unity SDK

Vivox Unity SDK

Vivox
​
​
Vivox Unity SDK
  • Overview
  • Get started
  • Release notes
  • Developer guide
    • Set up your project
    • Create voice and text channels
      • Channel management
      • Channel name criteria
      • Channel types
      • Positional channels
      • Channel identifiers for large scale games
      • Participant management
      • Join a channel
      • Leave a channel
      • Channel webhooks
      • Automatic connection recovery
    • Messaging
    • Player management
    • Device management
    • Audio management
    • Mobile development
    • Text-to-speech
    • Speech-to-text
    • Real-time recording
    • Server-side-recording
    • Troubleshooting
  • Tutorials
  • Reference
  1. Vivox Unity SDK のドキュメント
  2. Vivox Unity 開発者ガイド
  3. チャンネル

チャンネルから退出する

How to remove a player from a Vivox channel and disconnect from communication.
読み終わるまでの所要時間 1 分
最終更新 8ヶ月前

チャンネルからユーザーを削除するには、退出するチャンネルの名前で
VivoxService.Instance.LeaveChannelAsync(string channelName)
を呼び出します。別の方法として、
VivoxService.Instance.LeaveAllChannelsAsync()
を使用して、そのユーザーが接続しているすべてのチャンネルから退出することもできます。切断されたチャンネルオブジェクトは、切断が成功するまでの間、
VivoxService.Instance.ActiveChannels
リストに残ります。
セッションが完全に切断されている場合、オブジェクトはリストから即座に削除されます。
注
切断は即時の操作ではなく、完了までに数秒かかる場合があります。切断が正常に完了すると、ChannelLeft イベントがトリガーされます。
以下のコードは、この操作の実行方法の例を示します。
using UnityEngine;using Unity.Services.Vivox;class VivoxBasicsExample : MonoBehaviour{ . . . void LeaveChannel(string channelNameToLeave) { . . . VivoxService.Instance.LeaveChannelAsync(channelNameToLeave); . . . } . . .}

Copyright © 2026 Unity Technologies
法規事項プライバシーポリシークッキーDocumentation Terms of Use私の個人情報を販売または共有しないプライバシーに関する選択 (クッキー設定)

"Unity" の名称、Unity のロゴ、およびその他の Unity の商標は、米国およびその他の国における Unity Technologies またはその関係会社の商標または登録商標です (詳しくはこちら)。その他の名称またはブランドは該当する所有者の商標です。

一部のページは利便性向上のため機械翻訳を使用しており、内容に不正確な表現が含まれる場合があります。内容に齟齬または不一致が生じた場合は、英語版を正本とします。


    このページの問題を報告する