原文地址:Unity使用Photon PUN2设置中国区服务器 入门系列

PUN2选择中国区服务器

  1. 先搜索中国区官网
    Unity使用Photon PUN2设置中国区服务器
  2. 选择试用购买
    Unity使用Photon PUN2设置中国区服务器
    Unity使用Photon PUN2设置中国区服务器
  3. 绑定你的Appid
    注意: 当你的Appid申请了中国区后,海外的你就用不了了,你可以再创建App一个用于海外区
    Unity使用Photon PUN2设置中国区服务器
  4. 中国区设置方法
    官网文档
    找到LoadBalancingClient.cs文件
    Unity使用Photon PUN2设置中国区服务器
    在285行,找不到也可以Ctrl+F搜索
    Unity使用Photon PUN2设置中国区服务器
    改成这个样子就是中国区
    Unity使用Photon PUN2设置中国区服务器
    在Assets\Photon|PhotonUnityNetworking\Resources下的PhotonServerSettings
    固定区域填入CN
    Unity使用Photon PUN2设置中国区服务器

相关文章:

  • 2021-04-29
  • 2021-10-01
  • 2021-06-24
  • 2021-12-01
  • 2021-09-30
  • 2021-05-20
  • 2021-04-11
  • 2021-10-31
猜你喜欢
  • 2021-06-19
  • 2021-10-13
  • 2021-09-08
  • 2021-11-18
  • 2021-09-09
  • 2022-12-23
  • 2021-10-08
相关资源
相似解决方案