PunRPC's - Null Exception
Options
I've searched around, but I'm still unsure what to do in this situation:
I create a class that extends from Photon.PunBehaviour - which, as the documentation would imply, means that it has an inherent photonView element.
However, when I try to call photonView.RPC(), I get an exception which tells me that my inherited photonView has not been initialized. How would I go about initializing it, seeing as I seem have read-only access? What syntax might I use?
Thanks!
I create a class that extends from Photon.PunBehaviour - which, as the documentation would imply, means that it has an inherent photonView element.
However, when I try to call photonView.RPC(), I get an exception which tells me that my inherited photonView has not been initialized. How would I go about initializing it, seeing as I seem have read-only access? What syntax might I use?
Thanks!
0
Comments
-
Additionally, what exactly is the proper way to transfer information between two players? Apparently RPC's with return types won't cut it?0
-
Some people say something about creating a script with a PhotonView in it solving the problem. What exactly would that look like? Would that solve my particular issue?0
-
UPDATE: My only remaining question is now in Post 2:
With no returns on RPC's, how can I properly transfer information between two players?0 -
Hi,
Send RPC back to sender with data you want to return.0