Unity3d Photon Network Enable GameObject

How can I enable a game object through networking, so everyone in the game can see it?


  • You can enable a GO via network, yes.
    RPCs are not called on scripts that are disabled and I think this includes the scripts on GameObjects that are not active.
    So calling an RPC on a inactive GameObject to enable it won't work. You need to do this via another GameObject. Send the ViewID of the GameObject you want to activate and use PhotonView.Find(id) to find the target PhotonView. Then you also have access to the GameObjec.
  • Thank you very much for you reply!

    I find out another way to do this, I was trying to make a muzzle flash but Now I'm doing it with Particle Systems :)