文档

​
​

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

Channel Identifiers For Large Scale Games

Use channel identifiers for large-scale game servers with Vivox.
阅读时间1 分钟
最后更新于 8 个月前

如果满足以下任何陈述,则构造频道标识符时需谨慎:
  • 期望应用程序超过 100,000 PCU
  • 期望使用多频道功能
可以根据 Vivox Operations 的判断将大型游戏拆分为跨多台物理音频服务器(“分片”)。构造通道标识符以使用以下格式:
shard-group
例如,有一个应用程序,名称是“Queen of the Death”(QotD),它根据地理区域分配用户,例如“NA”表示“北美”。假设 QotD 为比赛中的所有参与者加入一个 3D 通道,然后也为队伍的成员加入一个 2D 通道。在此情况下,QotD 的最佳实践是应用以下条件:
  • 使用哈希值标识比赛
  • 在频道标识符的“shard”部分中包含区域和比赛标识符
  • 在通道标识符的“shard”部分后包含 3D 和队伍标识符
为此比赛分配的比赛标识符是
d0634bad1ca5a9cd
,3D 空间为
tundra
。进一步假定向队伍分配了从 1 开始的整数 ID,并且 Channel3DProperties 已经设置为变量
NewChannelProps
。
  • 位置频道
    string shard = "NA";string matchId = "d0634bad1ca5a9cd";string positionalSpaceId = "tundra";Channel3DProperties NewChannelProps = new Channel3DProperties(/* Add your own custom positional channel proprties here */);await VivoxService.Instance.JoinPositionalChannelAsync($"{shard}.{matchId}-{positionalSpaceId}", ChatCapability.AudioOnly, NewChannelProps);
  • 队伍 1 的群组频道
    string shard = "NA";string matchId = "d0634bad1ca5a9cd";int squadId = 1;await VivoxService.Instance.JoinGroupChannelAsync($"{shard}.{matchId}-{squadId}", ChatCapability.AudioOnly);
  • 队伍 2 的群组频道
    string shard = "NA";string matchId = "d0634bad1ca5a9cd";int squadId = 2;await VivoxService.Instance.JoinGroupChannelAsync($"{shard}.{matchId}-{squadId}", ChatCapability.AudioOnly);

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

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

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


    报告此页面的问题