简体   繁体   English

如何在我的自定义服务器上使用Photon Unity Networking?

[英]How do I use Photon Unity Networking with my custom server?

I was just wondering how I would use Photon Unity Networking (PUN) with my own custom server. 我只是想知道如何在自己的自定义服务器上使用Photon Unity Networking(PUN)。 I am not talking about Photon Cloud or Photon Server but a server that I have setup. 我不是在谈论Photon Cloud或Photon Server,而是我已设置的服务器。

Please try to be as simple as possible :) 请尝试尽可能简单:)

Thanks! 谢谢!

Photon Unity Networking implements a relatively complex message protocol and communication workflow. Photon Unity Networking实现了相对复杂的消息协议和通信工作流程。 It is not a simple wrapper around sockets or something like that, so it only communicates with Photon Servers - no matter if in the Photon Cloud or if you host your own Photon instance(s). 它不是套接字或类似对象的简单包装,因此它仅与Photon服务器通信-无论是在Photon Cloud中还是托管自己的Photon实例。

The best of both worlds might be using the Photon Server SDK, which comes with a project called "Load Balancing". 最好的选择是使用Photon Server SDK,该软件随附一个名为“负载平衡”的项目。 This is more or less the logic that runs in the Photon Cloud and while it's compatible with PUN, you might edit it into whatever you need. 这或多或少是在Photon Cloud中运行的逻辑,虽然它与PUN兼容,但是您可以将其编辑为所需的任何内容。

The download is here . 下载在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM