PhotonView.Get(this) returns null

I integrate PUN 1.22 to my Unity3d wp8 project. It builds correct, but PhotonView.Get(this) returns null. What can it be?

public static PhotonView Get(Component component)
return component.GetComponent<PhotonView>() as PhotonView;

public static PhotonView Get(GameObject gameObj)
return gameObj.GetComponent<PhotonView>() as PhotonView;


  • Maybe the GameObject or Component doesn't have a PhotonView? You need to attach the PV component of course.
  • it works, thanks))
    photonView = PhotonView.Get(this);
Sign In or Register to comment.