PhotonNetwork.Instantiate vs RPC Instantiate

Options
Hi there,
I'm curious as to what the main advantages would be for using one over the other and when should each of these be used. I could spawn an object using PhotonNetwork.Instantiate or I could just call a RPC that spawns that object for all clients locally. What's better and why?

Comments

  • OneManArmy
    OneManArmy ✭✭✭
    edited January 2017
    Options
    Hi, depends from situation. Basically use PhotonNetwork.Instantiate() to instantiate players. For everything else you can use RPC's (for example to instantiate: bullets, grenades and so on).
  • stefanplc
    Options
    Is there any advantage to using one over the other if you can do both? For example would an RPC call be more bandwidth efficient?