can choose network protocol in script?

I just wonder if I can choose UDP or TCP in script when I send data over network.
I am not familiar with network. But, I think some data send to all users using PhotonView.RPC are missing once in a while.
I heard TCP manages to deliver data to the target no matter what. I sometimes need this.
Is it possible?

Comments

  • Hi @mhhk88,

    you can change the connection protocol whenever the client is not connected to Photon. This can be done by using PhotonNetwork.SwitchToProtocol(...) for example.

    About reliability: there is an entry in the FAQ, please have a look at it.
  • @Simon Thank you for your clear explanations!!