Photonview Question

Hi everyone,

I'm still very new to Photon so I'm sure it's probably something pretty simple I'm missing. Anyway, in the current game I'm making, I have an airplane with a cross hair as it's child. I have successfully implemented Photon Cloud in the sense that multiple people can join and we can shoot each other. My question is, is there a way for the photon view to only apply to the actual model, not it's child which is the cross hair? Currently everyone can see other peoples' cross hair(which is a plane with an image on it).

I could be thinking about this completely wrong, but have had no luck so far. Any help would be greatly appreciated. Thanks in advance

-Jarryd

Comments

  • The solution in your case is simple: upon awake, let the crosshair check if transform.parent.GetComponent<PhotonNetworkView>().IsMine and if thats not the case then simply do gameObject.SetActiveRecursively(false); to disable the crosshair on all planes but the owners one
  • Thank you very much. This has been driving me nuts!
Sign In or Register to comment.