Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Third Party [PHOTON]RPC set active wont work

Discussion in 'Multiplayer' started by Moddwyn, Feb 28, 2017.

  1. Moddwyn

    Moddwyn

    Joined:
    Jan 27, 2016
    Posts:
    49
    Code (CSharp):
    1. [PunRPC]
    2. public void ShowShield (bool active){
    3.     ability.shield.SetActive (active);
    4. }
    Code (CSharp):
    1. GetComponent <PhotonView>().RPC ("ShowShield", PhotonTargets.AllBuffered, true);
    Why won't this show in the other clients? It shows in my client but not to other people. Why?
     
  2. Kamil-Says

    Kamil-Says

    Joined:
    Jun 30, 2014
    Posts:
    154
    First check if the rpc executes on other clients via debug, if not then make sure you send it with your owned view.