기술 자료

​
​

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.
읽는 시간 1분
최근 업데이트: 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 또는 그 계열사의 상표 또는 등록상표입니다(자세한 내용은 여기에서 확인하세요). 기타 명칭 또는 브랜드는 해당 소유자의 상표입니다.

일부 페이지는 편의를 위해 기계 번역되었으며 부정확한 내용이 있을 수 있습니다. 정보가 상충되는 경우, 영어 버전을 우선으로 참조하세요.


    이 페이지의 문제 보고