Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Unity Multiplayer [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.