Photon 服务器注册自定义类型

Photon Server Register Custom Types

registering custom types , it says to use a function called Protocol.TryRegisterCustomType(...) but I am not sure if it exits since I cannot use it in code (I am using the free version of Photon Server SDK)... It is not even in the Protocol documentation nor in the Photon Peer documentation 的 Photon 服务器示例中(存在 PhotonPeer.RegisterType(...))。

这个函数是否在其他命名空间中,或者这个缺失的函数是怎么回事?

对客户端使用ExitGames.Client.Photon.PhotonPeer.RegisterType,对服务器使用Photon.SocketServer.Protocol.TryRegisterCustomType

顺便说一句,您可以尝试使用 ReSharper 或其他 VS 扩展来自动搜索命名空间。