Disorder between RPC's and PhotonViews
Hi!
I am suddenly getting errors, when starting my multiplayer game.
"PhotonView with ID 1 has no (non-static) method "RPC_Start" marked with the [PunRPC](C#) or @PunRPC(JS) property! Args: Single".
"RPC_Start" does not belong to the object with PhotonView ID 1 but another Object that is instantiated and where the ID is set at runtime.
There are more similar errors, so I guess I will need a way to reset it all. I have tried to remove Photon PUN and then reimport it again, without success.
I would very much appreciate any help to solve this issue.
Regards
Mikael
I am suddenly getting errors, when starting my multiplayer game.
"PhotonView with ID 1 has no (non-static) method "RPC_Start" marked with the [PunRPC](C#) or @PunRPC(JS) property! Args: Single".
"RPC_Start" does not belong to the object with PhotonView ID 1 but another Object that is instantiated and where the ID is set at runtime.
There are more similar errors, so I guess I will need a way to reset it all. I have tried to remove Photon PUN and then reimport it again, without success.
I would very much appreciate any help to solve this issue.
Regards
Mikael
0
Comments
-
Yo
The script and the photon view must be attached to the same game object to make the RPC works1