PhotonView stating method doesn't have proper number of arguments.
Options
Distul
✭
I have many other [PunRPC] calls which work just fine. After modifying an existing call, it breaks. I'm not sure what's causing this. I went to the PhotonServerSettings and can see that RPC_AllPlayersInGameboard is in the Rpc list; I have tried clicking refresh.
I receive the following error:
method:
I receive the following error:
PhotonView with ID 2 has no method "RPC_AllPlayersInGameboard" that takes 1 argument(s): PhotonPlayer
method:
[PunRPC] private void RPC_AllPlayersInGameboard(PhotonPlayer[] players)caller:
photonView.RPC("RPC_AllPlayersInGameboard", PhotonTargets.All, PhotonNetwork.playerList);
0
Comments
-
Can't find edit button...
Also, when I remove arguments from caller and RPC_AllPlayersInGameboard() the RPC works.0 -
BUMP! Issue still present.0
-
Hi @Distul,
According to this other forum discussion, here is how you should call the RPC:photonView.RPC("RPC_AllPlayersInGameboard", PhotonTargets.All, (object)PhotonNetwork.playerList);
orphotonView.RPC("RPC_AllPlayersInGameboard", PhotonTargets.All, PhotonNetwork.playerList as object);
1 -
I'll give that a shot and follow up. Thanks.0
-
This worked. Thank you.JohnTube said:Hi @Distul,
According to this other forum discussion, here is how you should call the RPC:photonView.RPC("RPC_AllPlayersInGameboard", PhotonTargets.All, (object)PhotonNetwork.playerList);
orphotonView.RPC("RPC_AllPlayersInGameboard", PhotonTargets.All, PhotonNetwork.playerList as object);
0