Get Photon View Id of gameobject.

Hello guys, i am converting my Unity multiplayer game into Photon Multiplayer and i am stuck in one place where i have to get the PhotonViewID of a game object. In unity networking you can get the view id like this.

but i do not know how to get the photon View id?

any help will be appreciative thanks


  • You can use photonView.viewID instead of networkView.viewID if your object inherits from Photon.MonoBehaviour