Help, photonView.IsMine not set an Instance of the gameObject
Options
Im trying to do the PUN Basics Tutorial but 'im stuck in "5- Building the player""Controlling the beam whit user Input"".
"photonView.IsMine" not set an instance of an object, of course i make it a MonoBehaviourPunCallbacks to expose the PhotonView componen.
I dont know how make it works.
I tried to adding the Photonview script and i not see the error explained before, but "photonView.IsMine" is every time false.
Tnx alot
"photonView.IsMine" not set an instance of an object, of course i make it a MonoBehaviourPunCallbacks to expose the PhotonView componen.
I dont know how make it works.
I tried to adding the Photonview script and i not see the error explained before, but "photonView.IsMine" is every time false.
Tnx alot
0
Best Answers
-
So generally you would want to derive your player from MonoBehaviourPun. In addition to that, you would just want to make sure your player has a photon view attached to it.
Any code and editor screenshots you can provide would help to solve your issue as well.5 -
Hi @Xtrem1714,
Thank you for choosing Photon!
We need more details.
Could you share the whole stack trace?
Could you share the repro steps?5
Answers
-
So generally you would want to derive your player from MonoBehaviourPun. In addition to that, you would just want to make sure your player has a photon view attached to it.
Any code and editor screenshots you can provide would help to solve your issue as well.5 -
Hi @Xtrem1714,
Thank you for choosing Photon!
We need more details.
Could you share the whole stack trace?
Could you share the repro steps?5