文档

​
​

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. 频道

频道类型

Learn about the different types of Vivox channels available.
阅读时间2 分钟
最后更新于 7 个月前

Vivox 使用以下类型的频道:
  • 频道类型
    • 回声频道
    • 群组频道
    • 位置频道
频道类型由用于发起频道加入的方法表示。
JoinEchoChannelAsync
加入回声频道,
JoinGroupChannelAsyc
加入群组频道,
JoinPositionalChannelAsync
加入位置频道。
注意
当同时使用位置频道和群组频道时,先加入位置频道,然后是群组频道。

回声频道

使用
JoinEchoChannelAsync
方法加入回声频道,如下例所示:
JoinEchoChannelAsync("TestChannel", ChatCapability.AudioOnly)
开发者可以使用这些频道为用户提供麦克风测试位置,或是作为一种通用方法测试与 Vivox Voice Server 的连接。

群组频道

使用
JoinGroupChannelAsync
方法加入群组频道,如下例所示:
JoinGroupChannelAsync("TestChannel", ChatCapability.TextAndAudio)
开发者可以使用这些频道支持供玩家连接的关卡范围音频和文本频道。
经常使用非位置频道的示例包括第一人称射击游戏中的团队和小队以及 MMO 中的团队聊天。
非位置频道通常是 Vivox 实现中最常用的频道类型。

位置频道

使用
JoinPositionalChannelAsync
方法加入位置频道(也称为 3D 频道),如下例所示:
Channel3DProperties props = new Channel3DProperties() //The Channel3DProperties are set to default values, but might need to be changed based on the wanted scale of your game. JoinPositionalChannelAsync("TestChannel", ChatCapability.TextAndAudio, Channel3DProperties)
开发者可以使用这些频道实现融入到世界中的语音聊天,而玩家语音的衰减和平移使他们看起来好像是在游戏世界中所处的位置说话。要使此效果起作用,您必须设置用户的位置。有关如何设置玩家位置的说明,请参阅“位置频道配置”页面。您可以使用特定值对位置频道进行参数化,这些值可更改玩家定位如何影响其语音。
注意
一次只能加入一个位置频道。

Copyright © 2026 Unity Technologies
法律信息隐私政策CookiesDocumentation Terms of Use请勿出售或分享我的个人信息您的隐私选择(Cookie 设置)

“Unity”、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属公司在美国和其他地方的商标或注册商标(此处查看更多信息)。其他名称或品牌是其各自所有者的商标。

为方便起见,一些页面是机器翻译的,可能包含不准确的内容。如有信息不一致的情况,以英文版本为准。

  • 在本页上
    • 回声频道

    • 群组频道

    • 位置频道


报告此页面的问题