when using registered custom types server disconnecting

When i register custom types as Viking Demo and trying to send to server, server disconnecting saying DisconnectByServerLogic.
Maybe I must register custom types in server too????


  • that depends. if you send them as event to the other clients photon will just pipe them through (if "Protocol.AllowRawCustomValues = true;" is set on server setup, which is true for loadbalancing).
    If you actually want to use them as operation request parameters you have to register them on the server as well.
  • Yes, thank you very much :)
    I found how I can register custom types on the server "Protocol.TryRegisterCustomType()"