ドキュメント

​
​

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
        • Request capture device access
        • Initiate a channel join
      • 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 initiate a channel join request in Vivox.
読み終わるまでの所要時間 2 分
最終更新 8ヶ月前

以下のコードは、チャンネルへの参加を開始する方法の例を示します。
using System;using System.ComponentModel;using UnityEngine;using Unity.Services.Vivox;class JoinChannelExample : MonoBehaviour{ // For this example, _loginSession is a signed in ILoginSession. . . . void OnLoggedIn() { //These events can be bound anywhere, but keeping them within the lifecycle of an active LoginSession is typically best VivoxService.Instance.ChannelJoined += OnChannelJoined VivoxService.Instance.ChannelLeft += OnChannelLeft } void OnChannelJoined(string channelName) { //Perform actions to react to joining the specific channel with name channelName //UI switches, participant UI setup, etc } void OnChannelLeft(string channelName) { //Perform cleanup to react to leaving a specific channel with name channelName } async void JoinChannelAsync(string channelName) { //Join channel with name channelName and capability for text and audio transmission VivoxService.Instance.JoinGroupChannelAsync(channelName, ChatCapability.TextAndAudio); } . . .}
チャンネルに参加したタイミングを確認するには、
VivoxService.Instance.ChannelJoined
イベントがバインドされている必要があります。このイベント自体はチャンネル名によって起動されますが、チャンネル名は、そのチャンネルに必要な特定のイベントをトリガーするために使用される必要があります。異なるチャンネルがどのように処理されるかを区別するのに役立つ構造をチャンネル名に使用することをお勧めします。
ChannelLeft
は、チャンネルからの退出時に、パラメーターとして残されたチャンネル名によって起動されるアクションです。
VivoxService.Instance.JoinGroupChannelAsync
、
VivoxService.Instance.JoinEchoChannelAsync
、
VivoxService.Instance.JoinPositionalChannelAsync
には ChannelOptions と呼ばれるオプションのパラメーターがあります。ChannelOptions を使用して、チャンネルへの参加が終了したときにチャンネルを伝送先となるアクティブチャンネルにするなどの動作を設定します。

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

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

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


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